Matlab code for function y=newton_modif(g,x0,o)
NEWTON_MODIF tries to to find the root of an equation g(x)=0
by modified Newton-Raphson method
input:
g must be the @-syntax function or symbolic expression or char
x0 guess value
g must by ready for array input
Example g='sin(x)';,x0=2;y=newton_modif(g,x0,0) or
g=@(x)sin(x)+x.*cos(x); x0=1; y=newton_modif(g,x0,1) or
syms x; g=sin(x); y=newton_modif(g,x0,1)
Cite As
Konstantin Ninidze (2024). Matlab code for function y=newton_modif(g,x0,o) (https://www.mathworks.com/matlabcentral/fileexchange/71439-matlab-code-for-function-y-newton_modif-g-x0-o), 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
Acknowledgements
Inspired by: lattitle
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 |