Skip to content

Commit

Permalink
Tune test epsilons
Browse files Browse the repository at this point in the history
  • Loading branch information
bitshifter committed Mar 25, 2024
1 parent ecd93dc commit 67343fb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/euler.rs
Expand Up @@ -36,15 +36,10 @@ trait EulerEpsilon {
const E_EPS: f32;
}
impl EulerEpsilon for f32 {
const Q_EPS: f32 = 1e-5;

// The scalar-math and wasm paths seems to use a particularly bad implementation of the trig functions
#[cfg(any(feature = "scalar-math", target_arch = "wasm32"))]
const Q_EPS: f32 = 1e-4;
const E_EPS: f32 = 2e-4;

#[cfg(not(any(feature = "scalar-math", target_arch = "wasm32")))]
const E_EPS: f32 = 1e-5;
}

impl EulerEpsilon for f64 {
const Q_EPS: f32 = 1e-8;
const E_EPS: f32 = 1e-8;
Expand Down

0 comments on commit 67343fb

Please sign in to comment.