Skip to main content

estimate

Function estimate 

Source
pub fn estimate(e: &[f64]) -> f64
Expand description

Returns a floating-point approximation of the value of the valid expansion e: its components added from smallest to largest. Use sign for the exact sign.

ยงExamples

use implicit_predicates_core::expansion;

assert_eq!(expansion::estimate(&[1e-20, 1.0]), 1.0);
assert_eq!(expansion::estimate(&[]), 0.0);