Newton-Rhapson Method for 2 equations and 2 variables
Version 1.0.9 (2,36 KB) von
David Cazenave
Newton's method for 2 equations and 2 variables via matrix multiplication inside a while loop.
This script uses matrix multiplication in a while loop to calculate the zero(s) of f(x,y) = 0 and g(x,y) = 0, (2 equations and 2 variables), via the Newton-Rhapson method. It plots the zero level curves and the iterations of the method. It displays the iterations in a table in the command window. The script needs 3 inputs: the 2 equations, and the starting point entered as a column vector. The screen shot, left of title, shows example of zero of the two equations: f = y-sin(x), g = y-x^2+1 with starting point [-2;2], in the command and figure windows.
Zitieren als
David Cazenave (2024). Newton-Rhapson Method for 2 equations and 2 variables (https://www.mathworks.com/matlabcentral/fileexchange/109685-newton-rhapson-method-for-2-equations-and-2-variables), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Erstellt mit
R2022a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.9 | Changed title in script description. |
||
1.0.8 | Changed image (screen shot). |
||
1.0.7 | Changed descriptions. |
||
1.0.6 | Added to Description. |
||
1.0.5 | Clarified description. |
||
1.0.4 | Fixed error in comments. |
||
1.0.3 | Updated for R2022a. |
||
1.0.2 | Changed title. |
||
1.0.1 | Renamed file. |
||
1.0.0 |