フィルターのクリア

Solve for x in an algebraic equation

1 回表示 (過去 30 日間)
Dursman Mchabe
Dursman Mchabe 2018 年 3 月 19 日
編集済み: John D'Errico 2018 年 3 月 19 日
I would like to solve for x in the following algebraic equation:
syms a b c d x e f g h i
eqn = x-(lambertw(0, e*exp(log(h*exp(h*e)) - (d*c*(f*exp(-(x*d*c*a*b*g)/((a + b)*(x*e + 1))))*a*b*i*g)/(a + b)))/e)==0;
solx = solve(eqn, x)
However, I get:
solx =
Empty sym: 0-by-1
What can I do?

回答 (1 件)

John D'Errico
John D'Errico 2018 年 3 月 19 日
編集済み: John D'Errico 2018 年 3 月 19 日
You can recognize that it is easy to write an equation that has no analytical solution? In fact, you just did exactly that! Yes, it is true that some problems actually do have an analytical solution, even though it is impossible to solve for it, or even if the symbolic toolbox just gets lost.
The empty solution result tells you that MATLAB was unable to find a solution.
If you have values for all of those parameters, then substitute them so that now your problem involves only x. Then you can use vpasolve or fzero.

カテゴリ

Help Center および File ExchangeEquation Solving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by