Info
この質問は閉じられています。 編集または回答するには再度開いてください。
I need to solve two nonlinear equations simultaneously
5 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
Roger Stafford
2017 年 3 月 13 日
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.]
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!