We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1793bfd commit d464fa1Copy full SHA for d464fa1
lib/node_modules/@stdlib/math/base/special/asechf/test/test.js
@@ -43,10 +43,14 @@ tape( 'the function computes the hyperbolic arcsecant of 1', function test( t )
43
});
44
45
tape( 'the function computes the hyperbolic arcsecant of 0.5', function test( t ) {
46
- var v = asechf( 0.5 );
47
var expected = float64ToFloat32( 1.3169578969248166 );
48
- var delta = absf( v - expected );
49
- var tol = 10.0 * EPS;
+ var delta;
+ var tol;
+ var v;
50
+
51
+ v = asechf( 0.5 );
52
+ delta = absf( v - expected );
53
+ tol = 10.0 * EPS;
54
t.ok( delta <= tol, 'within tolerance. v: ' + v + '. expected: ' + expected + '. Δ: ' + delta + '. tol: ' + tol + '.' );
55
t.end();
56
0 commit comments