필터 지우기
필터 지우기

solving implicit equation with 3 variables knowing 2 of them

조회 수: 1 (최근 30일)
Omar Shadeed
Omar Shadeed 2018년 3월 28일
댓글: Birdman 2018년 3월 28일
Hi, I'm trying to solve the the equation shown in the attachment as you see it's function of three variables M,theta, and beta where lamda is 1.4, so given M and theta I would like to get the two corresponding values of beta. I have tried this:
syms beta;
M1= 5;
theta=20*pi/180;
gama=1.4;
eqn=tan(theta)==2*cot(beta)*((M1^2*sin(beta)^2-1)/M1^2*(gama+cos(2*beta)+2));
beta=solve(eqn,beta,'ReturnConditions',true);
% betadeg=beta*180/pi;
vpa(beta)
But I keep getting these errors
Error using sym>tomupad (line 1256)
Unable to convert 'struct' to 'sym'.
Error in sym (line 199)
S.s = tomupad(x);
Error in vpa (line 46)
ss = sym(s);
Error in untitled (line 8)
vpa(beta)
I would really appreciate your help. Thanks.

채택된 답변

Birdman
Birdman 2018년 3월 28일
Replace
vpa(beta)
with
vpa(beta.beta,3)
  댓글 수: 6
Omar Shadeed
Omar Shadeed 2018년 3월 28일
Is there any other way you recommend to solve it ?
Birdman
Birdman 2018년 3월 28일
Try to implement it in MuPaD.

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

추가 답변 (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