Description Usage Arguments Value References See Also Examples
View source: R/newtonraphson.R
Applies the Newton-Raphson algorithm to find x such that ftn(x)[1] == 0.
1 | newtonraphson(ftn, x0, tol = 1e-09, max.iter = 100)
|
ftn |
the function. |
x0 |
is the initial guess at the fixed point. |
tol |
distance of successive iterations at which algorithm terminates. |
max.iter |
maximum number of iterations. |
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.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.