MATLAB CODE TO FIND LOCAL EXTREMA OF A FUNCTION

42 ビュー (過去 30 日間)
ASHOK VARDHAN
ASHOK VARDHAN 2019 年 8 月 13 日
回答済み: Prashanth B 2022 年 2 月 12 日
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

回答 (3 件)

Torsten
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)

HARSHAVARDINI KRISHNAN
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)

Prashanth B
Prashanth B 2022 年 2 月 12 日
I=

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by