Description: function [x, hist] = secant(x, f, tola, tolr)
SECANT This a secant code with no line search.
This code terminates on small relative-absolute errors function [X, HIST] = SECANT(X, F, TOLA, TOLR) Inputs: X = initial iterate
F = function
TOLA = absolute error tolerance
TOLR = relative error tolerance
Output: X = approximate result
File list (Check if you may need any files):
secant.m