Update test to use assert_ulps_eq

This commit is contained in:
2022-06-27 11:46:59 +02:00
parent 0633c766a5
commit 2467d7e027
2 changed files with 55 additions and 142 deletions

View File

@@ -79,6 +79,15 @@ where
}
}
impl<K> Default for IndexMap<K>
where
K: Eq + Hash,
{
fn default() -> Self {
IndexMap::new()
}
}
fn erfc(x: f64) -> f64 {
let z = x.abs();
let t = 1.0 / (1.0 + z / 2.0);