solve non-linear equation
Ältere Kommentare anzeigen
Hello everybody,
I have an equation having the following form:
G = e^(-z)+ pho*e^(L-2z); with pho, G and L constant. I would like to find the z value. Could you suggest me a function to implement a code for solving my equation?
Thank you in advance
Fernando.
Akzeptierte Antwort
Weitere Antworten (1)
Example:
z=2.4;
pho=2;
L=2;
G = exp(-z) + pho*exp(L-2*z);
x=roots([pho*exp(L),1,-G]);
z=-log(x(x>0))
Kategorien
Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!