nrfind
nrfind
provides a Newton-Raphson root finder for arbitrary differentiable functions, as well as convenient wrappers for common use cases like square roots.
Documentation is available on docs.rs
A simple example of usage to find the roots of x3 + x2 + 1 in 18 iterations:
extern crate nrfind;
// The function for whose roots find_root will solve
// That function's derivative
This will print: x^3 + x^2 + 1 = 0 when x ~= -1.4675327346575013
.
Note that while this method is guaranteed to approximate a root, it may not be
the root you care about! Changing the given x0
guess can have an impact on
which root is approximated.