Applies the Newton-Raphson algorithm to find x such that ftn(x)[1] == 0, and plots the trace of the estimate.
newtonraphson_show(ftn, x0, xmin = x0 - 1, xmax = x0 + 1)
Returns the value of x at which ftn(x)[1] == 0. If the function fails to converge within max.iter iterations, returns NULL.
the function.
the initial guess of the fixed point.
lower limit for plotting.
upper limit for plotting.
Jones, O.D., R. Maillardet, and A.P. Robinson. 2009. An Introduction to Scientific Programming and Simulation, Using R. Chapman And Hall/CRC.
newtonraphson