フィルターのクリア

Why the responses of the following equations are nothing?

1 回表示 (過去 30 日間)
Marzieh Nodeh
Marzieh Nodeh 2022 年 4 月 21 日
コメント済み: Star Strider 2022 年 4 月 25 日
I'm trying to find aeq from the following equations. There are 3 equations with 3 unknowns. but the final response is empty brackets for all unknowns. Could you help me to solve this equation.
Regards,
syms ae gama A
eq1= (23.4255*(ae^3))+(1.2308e-06*ae)+gama
eq2= (A/(6*23.4255))-((2*1.2308e-06)/A)-ae
eq3= A-((((-108*gama)+(12*(sqrt(3*(((4*(1.2308e-06^2))+(27*(gama^2)*23.4255))/23.4255)))))*(23.4255^2)))^(1/3)
eqs= [eq1, eq2, eq3]
[ae,gama,A]=vpasolve(eqs, [ae,gama,A])
%reported results
ae =
[ empty sym ]
gama =
[]
A =
[]

回答 (1 件)

Star Strider
Star Strider 2022 年 4 月 21 日
Use solve then vpa
syms ae gama A
eq1= (23.4255*(ae^3))+(1.2308e-06*ae)+gama
eq1 = 
eq2= (A/(6*23.4255))-((2*1.2308e-06)/A)-ae
eq2 = 
eq3= A-((((-108*gama)+(12*(sqrt(3*(((4*(1.2308e-06^2))+(27*(gama^2)*23.4255))/23.4255)))))*(23.4255^2)))^(1/3)
eq3 = 
eqs= [eq1, eq2, eq3]
eqs = 
[ae,gama,A]=solve(eqs, [ae,gama,A]);
Warning: Possibly spurious solutions.
ae = vpa(ae,7)
ae = 
gama = vpa(gama,7)
gama = 
A = vpa(A,7)
A = 
Also consider double instead of vpa, depending on the result you want.
.
  6 件のコメント
Marzieh Nodeh
Marzieh Nodeh 2022 年 4 月 25 日
Perfect. Thank you very much for your help.
Star Strider
Star Strider 2022 年 4 月 25 日
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFunction Creation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by