フィルターのクリア

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 Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by