Newton-Raphson Numerical Method

版本 1.0.0.0 (1.7 KB) 作者: Roche de Guzman
Function for finding the x root of f(x) to make f(x) = 0, using the Newton-Raphson open method
168.0 次下载
更新时间 2017/2/21

查看许可证

% Inputs: with examples
% AF = anonymous function equation: AF = @(x) 1-((20^2)./(9.81*(((3*x)+((x.^2)/2)).^3))).*(3+x);
% xi = initial guess x = xR, where xR = x root: xi = 0.5;
% ed = desired approximate relative error = |(current - previous)/current|: ed = 0.01;
% Outputs
% xR = x root
% err = approximate relative error
% n = number of iterations
% xRV = x root vector
% errV = approximate relative error vector
% AFD1 = anonymous function 1st derivative
% AFD2 = anonymous function 2nd derivative

引用格式

Roche de Guzman (2024). Newton-Raphson Numerical Method (https://www.mathworks.com/matlabcentral/fileexchange/61683-newton-raphson-numerical-method), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Newton-Raphson Method 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0