pub fn sign(e: &[f64]) -> SignExpand description
Returns the exact sign of the value of the valid expansion e (see the
module documentation): the sign of its last component, which
outweighs all the others together.
ยงExamples
use implicit_predicates_core::{Sign, expansion};
assert_eq!(expansion::sign(&[1e-20, -1.0]), Sign::Negative);
assert_eq!(expansion::sign(&[]), Sign::Zero);