solve non-linear equation
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Fernando Robert Ferrel Ballestas
el 20 de Mzo. de 2023
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.
0 comentarios
Respuesta aceptada
David Hill
el 20 de Mzo. de 2023
Use fzero
eqn=@(z)exp(-z)+pho*exp(L-2*z)-G;%you could plot the function to find the approximate location of the root
z=fzero(eqn,0)
0 comentarios
Ver también
Categorías
Más información sobre Oceanography and Hydrology en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!