Newton-Rhapson Method for 2 equations and 2 variables

버전 1.0.8 (2.36 KB) 작성자: David Cazenave
Newton's method for 2 equations and 2 variables via matrix multiplication inside a while loop.

다운로드 수: 5

업데이트 날짜: 2022/7/24

라이선스 보기

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.

인용 양식

David Cazenave (2022). Newton-Rhapson Method for 2 equations and 2 variables (, MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2022a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!