Skip to content

Commit 0a92b55

Browse files
committed
fix: increased tolerance for single point precision numbers
1 parent e0e3e18 commit 0a92b55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/math/base/special/acosdf/test/test.native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ tape( 'the function computes the arccosine in degrees (negative values)', opts,
7474
t.equal( y, expected[ i ], 'x: '+x[i]+'. E: '+expected[i] );
7575
} else {
7676
delta = absf( y - expected[i] );
77-
tol = 1.4 * EPS * absf( expected[i] );
77+
tol = 2.8 * EPS * absf( expected[i] );
7878
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. tol: '+tol+'. Δ: '+delta+'.' );
7979
}
8080
}
@@ -98,7 +98,7 @@ tape( 'the function computes the arccosine in degrees (positive values)', opts,
9898
t.equal( y, expected[ i ], 'x: '+x[i]+'. E: '+expected[i] );
9999
} else {
100100
delta = absf( y - expected[i] );
101-
tol = 1.4 * EPS * absf( expected[i] );
101+
tol = 2.8 * EPS * absf( expected[i] );
102102
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. tol: '+tol+'. Δ: '+delta+'.' );
103103
}
104104
}

0 commit comments

Comments
 (0)