MATLAB CODE TO FIND LOCAL EXTREMA OF A FUNCTION
36 次查看(过去 30 天)
显示 更早的评论
what is the matlab code to identify local extrema of follwing function f(x,y)=x^2+y^3-3*x*y , -5<=y<=5
0 个评论
回答(3 个)
Torsten
2019-8-13
syms x y
f = x^2 + y^3 - 3*x*y;
fx = diff(f,x);
fy = diff(f,y);
eqns = [ fx == 0, fy == 0];
vars = [x y];
[solx, soly] = solve(eqns, vars)
0 个评论
HARSHAVARDINI KRISHNAN
2021-1-21
syms x y
f = x^2 + y^3 - 3*x*y;
fx = diff(f,x);
fy = diff(f,y);
eqns = [ fx == 0, fy == 0];
vars = [x y];
[solx, soly] = solve(eqns, vars)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Descriptive Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!