Module numeric

Source
Expand description

Vendored from statrs@0.18.0 (prec.rs), convenience wrappers around methods from the approx crate. Provides utility functions for working with floating point precision.

Constants§

ACC
Targeted accuracy instantiated over f64

Functions§

almost_eq
Compares if two floats are close via approx::abs_diff_eq using a maximum absolute difference (epsilon) of acc.
convergence
Compares if two floats are close via approx::relative_eq! and ACC relative precision. Updates first argument to value of second argument.