using 'fsolve'

조회 수: 2 (최근 30일)
Harry Jones
Harry Jones 2019년 3월 21일
편집: Harry Jones 2019년 3월 23일
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