Solve equation without symbolic toolbox
古いコメントを表示
Hi. I am trying to solve "0.0178508*x^2 - 1/(0.694548*(1/x)^0.9 + 0.000136807)^5.44=0" this equation which is a simplified equation derived from Reynold's number equation for head loss.
syms x
solve(0.0178508*x^2 - 1/(0.694548*(1/x)^0.9 + 0.000136807)^5.44==0,x);
I tried this code. It's not giving me any solution for symbolically. Can anyone help me to solve this equation for x. Thanks.
FYI. 

This is the actual equation.
hL=19.5, L=18, g=9.8, D=0.0889, Ɛ=0.000045, v=1.37, V̇=?
採用された回答
その他の回答 (1 件)
Do you understand this is not a simple quadtatic polynomial? In fact, it is equivalent to a rather high order polynomial. And is is known (Abel-Ruffini, dating back to 1799) that a polynomial equation of degree higher than 4 has no algebraic solution (except for some trivial cases.) And your simply written problem is equivalent to a polynomial of degree over 100.
Anyway, I'm not sure what you were expecting to see as a result. You gave MATLAB no place to return anything into a variable, but then tyou eneded the line with a semi-colon, so nothing would be displayed on the command line.
syms x
F = 0.0178508*x^2 - 1/(0.694548*(1/x)^0.9 + 0.000136807)^5.44;
xsol = vpasolve(F==0,x)
Note that vpasolve will return ONE solution, but as I said, there may be literally hundreds of solutions. Why do I say that? You are raising things to the power 5.44. One can theoretically turn that into a polynomial, with only integer exponents. But now the exponents will be at least 100, and here, surely more. Most of those solutions will be complex valued of course.
Does a real solution exist at all? Perhaps not. It does not appear to cross zero, at least for positive x.
fplot(F,[0,1])
4 件のコメント
Walter Roberson
2022 年 11 月 7 日
編集済み: Walter Roberson
2022 年 11 月 7 日
But now the exponents will be at least 100
5.44 = 136/25 so you could potentially get away with "only" degree 25. Well, at least for that part: the ^0.9 also needs to be taken into account. So degree 50 perhaps.
S M Inzamul Islam
2022 年 11 月 7 日
John D'Errico
2022 年 11 月 8 日
I showed you code that returns a "value" It is a complex value. But I also point out it is entirely possible no real solution exists.
S M Inzamul Islam
2022 年 11 月 8 日
カテゴリ
ヘルプ センター および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

