Fixed-Point Iteration Numerical Method

version 1.0.0.0 (1.69 KB) by
Function for finding the x root of f(x) to make f(x) = 0, using the fixedpoint iteration open method

Updated Tue, 21 Feb 2017 21:20:38 +0000

% 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

Cite As

Roche de Guzman (2022). Fixed-Point Iteration Numerical Method (https://www.mathworks.com/matlabcentral/fileexchange/61699-fixed-point-iteration-numerical-method), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux