Newton's Method

버전 1.0.0.0 (9.17 KB) 작성자: Farhad Sedaghati
Newton's Method to find the roots of a polynomial
다운로드 수: 2.8K
업데이트 날짜: 2015/8/3

라이선스 보기

This function can be used to perform Newton-Raphson method to detect the root of a polynomial. It starts from an initial guess by user and iterates until satisfy the required convergence criterion.
It should be noted that the “root” function in the MATLAB library can find all the roots of a polynomial with arbitrary order. But this method, gives the one the roots based on the initial guess and it gives the number of iteration required to converge.
% Example:
% f(x)=(x^3)-6(X^2)-72(x)-27=0
% therefore
% vector=[1 -6 -72 -27]
% initial=300;
% tolerance=10^-2;
% maxiteration=10^4;
% [root,number_of_iteration] = newton(vector,initial,tolerance,maxiteration)
% or
% [root,number_of_iteration] = newton([1 -6 -72 -27],300,10^-2,10^4)
% root=
% 12.1229
% number_of_iteration=
% 13
% This means that the detected root based on the initial
% guess (300) is 12.1229 and it converges after 13 iterations.

인용 양식

Farhad Sedaghati (2024). Newton's Method (https://www.mathworks.com/matlabcentral/fileexchange/52362-newton-s-method), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2013a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Polynomials에 대해 자세히 알아보기
도움

줌: newtonraphson

Community Treasure Hunt

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

Start Hunting!

Newton's Method to find the roots of a polynomail/

버전 게시됨 릴리스 정보
1.0.0.0

Updated description
Updated description