Having trouble solving an equation

I am still relatively new to Matlab. I am trying to solve an equation, and when I try to run the code, it doesn't produce an answer.
syms x
eqn = sqrt(((((26892/(x)^3)+(254.7/(x^2)))/2)^2)+(6111.5/((x)^3))^2) == 19000;
sol = solve(eqn, x);
What am I doing wrong?

 採用された回答

Paul
Paul 2025 年 11 月 19 日

0 投票

syms x
eqn = sqrt(((((26892/(x)^3)+(254.7/(x^2)))/2)^2)+(6111.5/((x)^3))^2) == 19000;
expand(eqn)
ans = 
solve is telling it can't find closed form expressions for the eqn
sol = solve(eqn, x)
sol = 
So it returns a solution as the roots of a polynomial. The values of these roots can be optained as follows
vpa(sol)
ans = 
Check
subs(eqn,ans)
ans = 

1 件のコメント

Quinn
Quinn 2025 年 11 月 20 日
That did it. Thank you very much for the help!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

質問済み:

2025 年 11 月 19 日

コメント済み:

2025 年 11 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by