Problem of critical point solution.

1 回表示 (過去 30 日間)
George Co
George Co 2015 年 11 月 7 日
コメント済み: Walter Roberson 2015 年 11 月 8 日
I have a problem with function below. The answer below means that there is only one critical point, but the graph tells me there are 5 points.
syms x y
f=(2*x^2+8*y^2-4*x)/exp(x^2+y^2-2*x-1);
gradf = jacobian(f,[x,y]);
hessmatf = jacobian(gradf,[x,y]);
[xcr,ycr]=solve(gradf(1),gradf(2));
Cannot solve symbolically. Returning a numeric approximation instead.
> In solve at 306
In criticalpoint at 5
ans =
[ -0.4142135623730950488016887242097, 0]
  3 件のコメント
Walter Roberson
Walter Roberson 2015 年 11 月 8 日
You would get that result if you were to paste the lines of code in to the console.
Walter Roberson
Walter Roberson 2015 年 11 月 8 日
It does appear to have given up on the solve() too easily. Which version are you using?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeNumber Theory についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by