Header menu logo bristlecone

RootFinding Module

Statistics for determining the root of non-linear equations.

Functions and values

Function or value Description

bisect n N f a b t

Full Usage: bisect n N f a b t

Parameters:
    n : int
    N : int
    f : float -> float
    a : float
    b : float
    t : float

Returns: float

Bisect method for finding root of non-linear equations.

n : int
N : int
f : float -> float
a : float
b : float
t : float
Returns: float

secant n N f x0 x1 x2

Full Usage: secant n N f x0 x1 x2

Parameters:
    n : int
    N : int
    f : float -> float
    x0 : float
    x1 : float
    x2 : 'a

Returns: float

Secant method for finding root of non-linear equations. This method is faster than bisection, but may not converge on a root.

n : int
N : int
f : float -> float
x0 : float
x1 : float
x2 : 'a
Returns: float

Type something to start searching.