pub fn from_two_sum(a: f64, b: f64, out: &mut [f64]) -> usizeExpand description
Writes the expansion of the exact sum a + b.
Capacity: 2. Requirement: a and b have magnitude below 2^1020.
ยงExamples
use implicit_predicates_core::expansion;
let mut out = [0.0; 2];
let len = expansion::from_two_sum(1.0, 1e-20, &mut out);
assert_eq!(&out[..len], &[1e-20, 1.0]);