Symbolic function- differential equation sloving
显示 更早的评论
How can I find the maximum or minimum values of the answer of a differential equation after solving it? It returns Symbolic Function as the solution of the equation.
回答(2 个)
KSSV
2017-10-27
0 个投票
You substitute the required values in the solution using subs and then call max / min.
4 个评论
Soheil Habibian
2017-10-27
编辑:Soheil Habibian
2017-10-27
Walter Roberson
2017-10-27
symfun and regular sym are the same except for the indexing operation name(value).
Soheil Habibian
2017-10-27
Walter Roberson
2017-10-27
points_of_interest = solve( diff(g, x), x );
which_sign = sign( subs( diff(g, x, x), points_of_interest ) );
After that you need to know how to determine from the sign whether you are dealing with a min or a max or an inflection point.
Walter Roberson
2017-10-27
0 个投票
You take the derivative of the equation and you solve for zeros. Then you take the second derivative and check the sign at each of the zeros in order to determine whether you have a min, max, or saddle.
类别
在 帮助中心 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!