raft-0.3.7.0: Miscellaneous Haskell utilities for data structures and data manipulation.

Safe HaskellSafe
LanguageHaskell2010

Math.Roots

Contents

Description

Root finding.

Synopsis

Types.

type RootFinder a Source #

Arguments

 = (a -> a)

The function.

-> (a, a)

The interval bracketing the root.

-> Either String a

The root, or an error message if it could not be found.

A function for findng a root.

type Bracketer a Source #

Arguments

 = (a -> a)

The function.

-> (a, a)

A guess at the interval bracketing a root.

-> Either String (a, a)

The bracketing of the root, or an error message if it could not be found.

A function for bracketing a root.

Functions.

bracket Source #

Arguments

:: (Fractional a, Num a, Ord a) 
=> Int

The maximum number of function evaluations allowed.

-> Bracketer a

The root bracketing function.

Bracket a bracket around a root.

bracketInward Source #

Arguments

:: (Num a, Ord a) 
=> Int

The maximum number of function evaluations allowed.

-> Bracketer a

The root bracketing function.

Search for a bracket around a root inside an interval. | | 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).

bracketOutward Source #

Arguments

:: (Fractional a, Num a, Ord a) 
=> Int

The maximum number of function evaluations allowed.

-> Bracketer a

The root bracketing function.

Search for a bracket around a root outside an interval. | | 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).