generative-art-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Numerics.FindRoot

Description

Solve \(f(x) = 0\) for \(x\).

Synopsis

Documentation

newtonStep Source #

Arguments

:: Double

\(h\) to calculate the derivative, as in \(\frac{f(x+h)-f(x)}h\)

-> (Double -> Double)

\( f(t_n) \)

-> Double

\( t_n \)

-> Double

\( t_{n+1} \)

Single step for Newton’s method for root finding.

https://en.wikipedia.org/wiki/Newton%27s_method

\[ t_{n+1} = t_n - \frac{f(t_n)}{f'(t_n)} \]

Useful as a parameter to recurseUntilPrecision.