Crate nrfind [] [src]

nrfind is a crate for finding the roots of arbitrary functions whose derivatives are known by the Newton-Rahpson method.

Functions

find_root

Uses the Newton-Raphson method to find roots for function given that derivative is the first derivative of function. If max_iterations is reached without the error falling below the given acceptable_err, nrfind will return None.

find_sqrt

Find the square root of a given radicand to within a given acceptable_err by the Newton-Rahpson method, initial guess x0, and give up after max_iterations (in which case None is returned).