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

Answers (1)

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.

Asked:

Ian
on 27 Sep 2016

Edited:

on 27 Sep 2016

Community Treasure Hunt

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

Start Hunting!