필터 지우기
필터 지우기

I am trying to findout maximum value of a equation of two variable

조회 수: 2 (최근 30일)
NEELU GUPTA
NEELU GUPTA 2018년 9월 11일
댓글: NEELU GUPTA 2018년 9월 17일
an = 1500;
bn = 0.0022;
Mn = 0.024;
gn = 10^-15;
mu_n = 3;
syms x y real
eqns = Mn - mu_n*[1+exp(-an*(gn*(x + y)-bn))]
dx = diff(eqns,x);
dy = diff(eqns,y);
r= diff(eqns,x,2);
t= diff(eqns,y,2);
s= diff(dx,y);
sol = vpasolve([dx,dy])
subs(r,{x,y},{sol.x,sol.y})
subs(t,{x,y},{sol.x,sol.y})
subs(s,{x,y},{sol.x,sol.y})
A = r*t;
B = s^2;
if A>B
if r > 0
disp('minima');
else
disp('maxima');
end
elseif A < B
disp('no minima & no maxima');
else
disp('no solution');
end
subs(eqns,{x,y},{sol.x,sol.y})
  댓글 수: 8
NEELU GUPTA
NEELU GUPTA 2018년 9월 13일
i need two points (Pi*,Pj*),Suggest me if there is another solution.
NEELU GUPTA
NEELU GUPTA 2018년 9월 17일
thanks to all for replying

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 9월 13일
subs() does not change the original variable unless you assign the result to the variable.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by