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

Is there any way to solve an equation like that in matlab?
I think it’s pretty hard to get through because there’s erfi constant in the equation
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.
Thank you sir Walter for briefing the issue much appreciated

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

태그

질문:

2018년 10월 30일

댓글:

2018년 11월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by