Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Root finding using the bisection method.
- findRoot :: (Fractional a, Num a, Ord a) => Int -> a -> RootFinder a
Functions.
:: (Fractional a, Num a, Ord a) | |
=> Int | Maximum number of bisections. |
-> a | Absolute error tolerance. |
-> RootFinder a | The root finder. |
Find a root using the bisection method. | | Reference: William H. Press, Saul A. Teukolsky, William T. Vetterling, and Brian P. Flannery, Numerical Recipes in C: The Art of Scientific Computing>, Second Edition (New York: Cambridge Univ. Press, 1992).