Description Usage Arguments Details Value See Also Examples
Use Newton's method to find real roots
1 | newton(f, fp, x, tol = 0.001, m = 100)
|
f |
function to integrate |
fp |
function representing the derivative of |
x |
an initial estimate of the root |
tol |
the error tolerance |
m |
the maximum number of iterations |
Newton's method finds real roots of a function, but requires knowing
the function derivative. It will return when the interval between
them is less than tol
, the error tolerance. However, this
implementation also stops after m
iterations.
the real root found
Other optimz:
bisection()
,
goldsect
,
gradient
,
hillclimbing()
,
sa()
,
secant()
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.