Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

I need to solve two nonlinear equations simultaneously

5 Ansichten (letzte 30 Tage)
Nayan Mirgal
Nayan Mirgal am 13 Mär. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 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

Antworten (1)

Roger Stafford
Roger Stafford am 13 Mär. 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.]

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by