Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

I need to solve two nonlinear equations simultaneously

5 visualizaciones (últimos 30 días)
Nayan Mirgal
Nayan Mirgal el 13 de Mzo. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Equations are as below F(1)=(1/x)*34+34*log(1510247/y)-34*((1510247/y)^x)*log(1510247/y)-63740*((6099707071/y)^x)*log(6099707071/y) F(2)=(-x/y)*34+(x/y)*34*(1510247/y)^x+(x/y)*63740*(6099707071/y)^x

Respuestas (1)

Roger Stafford
Roger Stafford el 13 de Mzo. de 2017
If you have the Optimization Toolbox, you can use fsolve to find an accurate simultaneous solution for the two equations. You can read about it at:
https://www.mathworks.com/help/optim/ug/fsolve.html
To use it you will need an initial rough estimate of the solution. To obtain that rough estimate I would recommend you use the contour function for both equations seeking simultaneous zero value contours, and see where the two respective contours cross (use “hold on”.) You can read about the contour function at:
https://www.mathworks.com/help/matlab/ref/contour.html
[Hint: For the contour grid I recommend you use x values in the neighborhood of multiples of 10^(-5) and y values somewhere in the neighborhood of multiples of 10^6. I think the two contours will cross somewhere in that area.]

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by