rootfinder
Root-finding methods for both univariate, scalar-valued functions and multivariate, vector-valued functions.
Documentation
Please see https://docs.rs/rootfinder.
Example
use ;
// Define the function f(x) = x² - 1.
let f = ;
// We want the root in the interval [0,∞). Therefore, we use an initial interval of
// [a,b] = [0,9999999]. Finding this root using the bisection method,
let result = root_bisection;
let root = result.unwrap;
// `root` is `0.9999999999999999`, which is very close to the true root of 1.