28-Jul-2021 19:30:02 nonlin_secant_test(): MATLAB/Octave version 9.9.0.1467703 (R2020b) nonlin_secant() is an interactive program to seek a root of an equation using the secant method. Tolerance = 2.22045e-15 Number of steps = 11 a = -3.000000000005028, f(a) = 4.02274e-11 b = -3, f(b) = 0 status = "Convergence: very small function value!" Tolerance = 2.22045e-14 Number of steps = 8 a = 3.790834555849615, f(a) = -9.71978e-10 b = 3.790834555474779, f(b) = 1.11022e-15 status = "Convergence: very small function value!" Tolerance = 2.22045e-15 Number of steps = 7 a = 0.7390851332151758, f(a) = -2.53131e-14 b = 0.7390851332151607, f(b) = 0 status = "Convergence: very small function value!" Tolerance = 2.22045e-15 Number of steps = 50 a = -0.6394410365311047, f(a) = 1.40888 b = 7.524666799898133, f(b) = 57.6206 status = "Failure: too many steps!" nonlin_secant_test(): Normal end of execution. 28-Jul-2021 19:30:02