Description Usage Arguments Value References See Also
View source: R/newtonraphson_show.R
Applies the Newton-Raphson algorithm to find x such that ftn(x)[1] == 0, and plots the trace of the estimate.
| 1 | newtonraphson_show(ftn, x0, xmin = x0 - 1, xmax = x0 + 1)
 | 
| ftn | the function. | 
| x0 | the initial guess of the fixed point. | 
| xmin | lower limit for plotting. | 
| xmax | upper limit for plotting. | 
Returns the value of x at which ftn(x)[1] == 0. If the function fails to converge within max.iter iterations, returns NULL.
Jones, O.D., R. Maillardet, and A.P. Robinson. 2009. An Introduction to Scientific Programming and Simulation, Using R. Chapman And Hall/CRC.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.