Solving simultaneous non linear equation
Mostra commenti meno recenti
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 Commento
Walter Roberson
il 27 Set 2016
Is e^-3.8*t exp(-3.8)*t or exp(-3.8*t)
Risposte (1)
John D'Errico
il 27 Set 2016
0 voti
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.
Categorie
Scopri di più su Newton-Raphson Method in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!