Getting Error: Warning: Unable to find explicit solution.

Trying to solve for ignition temperature of different materials using equation attached. This is my code:
%G=30,000 W/m^2
%T0=298K
%E=.9
%h= 15 W/m^2/K
%%PMMA
%K*rho*c=10,000,000
%tp=653K
syms t_ign;
eqn = 298+((.9*30000)/15)*(1-exp(225*t_ign/10000000))*erfc(((225*t_ign)/10000000)^(1/2))==653 ;
sol1 = solve(eqn,t_ign);
Anyone know what is wrong??

 採用された回答

madhan ravi
madhan ravi 2018 年 10 月 30 日

0 投票

There is nothing wrong in your code but Matlab is not able to solve the above equation , tried it in Wolfram wasn't able to solve either

4 件のコメント

Ella Meredith
Ella Meredith 2018 年 10 月 30 日
Is there any way to solve an equation like that in matlab?
madhan ravi
madhan ravi 2018 年 10 月 30 日
I think it’s pretty hard to get through because there’s erfi constant in the equation
Walter Roberson
Walter Roberson 2018 年 10 月 30 日
As a general rule: if you are using solve() with an expression that includes floating point numbers then you are making a mistake. solve() is for finding exact closed form solutions if possible, but any time you have a floating point constant, that is an indication that your inputs are not exact and therefore it is meaningless to get an exact solution.
If you are looking for approximate solutions then vpasolve.
madhan ravi
madhan ravi 2018 年 11 月 1 日
Thank you sir Walter for briefing the issue much appreciated

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by