28-Jul-2021 19:28:45
nonlin_regula_test():
MATLAB/Octave version 9.9.0.1467703 (R2020b)
nonlin_regula() is an interactive program to seek
a root of an equation using the regula falsi method.
Function = "x^2 - 2*x - 15"
a = 4.999999999999998, f(a) = -1.42109e-14
b = 5, f(b) = 0
Interval tolerance = 1.77636e-13
Number of steps = 30
x = 4.999999999999999, f(x) = -5.32907e-15
Function = "cos(x) - x"
a = 0.7390851332151605, f(a) = 3.33067e-16
b = 0.7390851332151607, f(b) = 0
Interval tolerance = 2.22045e-14
Number of steps = 13
x = 0.7390851332151606, f(x) = 1.11022e-16
nonlin_regula - Warning!
Iterations reached maximum limit 100
Function = "kepler(x)"
a = 3.485748613461555, f(a) = 0.839447
b = 3.79083455547478, f(b) = -2.22045e-16
Interval tolerance = 2.22045e-13
Number of steps = 100
x = 3.638291584468167, f(x) = 0.408656
nonlin_regula_test():
Normal end of execution.
28-Jul-2021 19:28:45