Solving simultaneous non linear equation
显示 更早的评论
What code do I use to solve these equations?
{(40/t)-(20/t+1)-3.8+[(7.6*k*e^-3.8*t)((1/(t+1)^2)-(t+1+3.8*t)/(t+1))]/1-k+(2*k*e^-3.8*t)(t+1+3.8*t)/(t+1)}=0
,{[-1+(2*e^-3.8*t)(t+1+3.8*t)/(t+1)]/(1-k+(2*k*e^-3.8*t)(t+1+3.8*t)/(t+1)}=0
1 个评论
Walter Roberson
2016-9-27
Is e^-3.8*t exp(-3.8)*t or exp(-3.8*t)
回答(1 个)
John D'Errico
2016-9-27
0 个投票
Use either vapsolve of fsolve. These are nonlinear equations that will almost surely have no analytical solution. Both of those tools will try to find a numerical solution.
They will NOT find all solutions. That can be a very difficult problem. And there is no assurance that a solution even exists.
You need to use the exp(x) function to compute e^x. There are lots of questions I would have about the equations as written. It looks like you were not at all careful about how you wrote them, in terms of missing parens, etc. Also note that you cannot mix in {} as parentheses. {} creates a cell array in MATLAB. Use () to enforce the order of operations, ALWAYS.
类别
在 帮助中心 和 File Exchange 中查找有关 Newton-Raphson Method 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!