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
Walter Roberson 2016 年 9 月 27 日
Is e^-3.8*t exp(-3.8)*t or exp(-3.8*t)

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

回答 (1 件)

John D'Errico
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.

質問済み:

Ian
2016 年 9 月 27 日

編集済み:

2016 年 9 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by