finding root of any polynomail using Newton Raphson method
*copy the file to your current directory.
Example-
If you want to find a root of
f(x)=6x^3+8x^2-3x^1+78,
write the command-
find_root([78 -3 8 6]);
on MATLAB command window.
*If you want to find another root, change the 100 in,
x=100; (4th line of find_root.m file) to another value as your preference and
rerun
find_root([78 -3 8 6]); command.
*for further details about the algorithm used to calculate
roots. refer
Cite As
Dimuthu Senanayaka (2024). finding root of any polynomail using Newton Raphson method (https://www.mathworks.com/matlabcentral/fileexchange/28836-finding-root-of-any-polynomail-using-newton-raphson-method), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Optimization Toolbox > Systems of Nonlinear Equations > Newton-Raphson Method >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |