using 'fsolve'

2 次查看(过去 30 天)
Harry Jones
Harry Jones 2019-3-21
I have the function f(x,y) = x.^(2-x.^(0.5))+y.^(2-y.^(0.5)) and I found the Jacobian and Hessian Matrices. Now I need to find the turning point using the function "fsolve" and stating its nature.
Can anyone help me?
Thanks in advance.
  1 个评论
Walter Roberson
Walter Roberson 2019-3-21
The "turning points" are all the points where the derivative are 0.
You already have the derivative when you formed the Jocobian.

请先登录,再进行评论。

采纳的回答

Stephan
Stephan 2019-3-21
Hi,
why not solve it symbolic:
syms f(x,y)
f(x,y) = x.^(2-x.^(0.5))+y.^(2-y.^(0.5));
[xsol,ysol] = vpasolve(diff(f,x) + diff(f,y) == 0, [x,y], [1 3; 1 3]);
zsol = subs(f,[x,y],[xsol,ysol]);
% plot results
fsurf(f)
hold on
scatter3(double(xsol),double(ysol),double(zsol),'or','LineWidth',2,'MarkerFaceColor','r')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by