Description Usage Arguments Value
Secant method root finding
1 | secantMethod(f, x1, x2, maxIter, targetError)
|
f |
The function to optimise to zero. Must take exactly 1 parameter |
x1 |
First guess |
x2 |
Second guess |
maxIter |
Maximum number of iterations to run for |
targetError |
Maximum error before the solution will be accepted as correct |
X value which returns zero. If root finding fails, returns NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.