diff --git a/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/benchmark.js index 067cbf8f7f2a..5de1cbbd4332 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/benchmark.js @@ -21,7 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pkg = require( './../package.json' ).name; var acsc = require( './../lib' ); @@ -34,10 +34,11 @@ bench( pkg, function benchmark( b ) { var y; var i; + x = uniform( 100, 1.0, 3.0 ); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu()*2.0 ) + 1.0; - y = acsc( x ); + y = acsc( x[ i % x.length ] ); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/benchmark.native.js index 057ee25d5c20..096350867ba1 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/benchmark.native.js @@ -22,7 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; @@ -43,10 +43,11 @@ bench( pkg + '::native', opts, function benchmark( b ) { var i; var x; + x = uniform( 100, 1.0, 3.0 ); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu()*2.0 ) + 1.0; - y = acsc( x ); + y = acsc( x[ i % x.length ] ); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/c/native/benchmark.c index fc088aa464fc..24497038c478 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/c/native/benchmark.c @@ -90,16 +90,19 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { + double x[ 100 ]; double elapsed; - double x; double y; double t; int i; + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 100.0*rand_double() ) - 50.0; + } + t = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - x = ( 100.0*rand_double() ) - 50.0; - y = stdlib_base_acsc( x ); + y = stdlib_base_acsc( x[ i%100 ] ); if ( y != y ) { printf( "should not return NaN\n" ); break; diff --git a/lib/node_modules/@stdlib/math/base/special/acsc/test/test.js b/lib/node_modules/@stdlib/math/base/special/acsc/test/test.js index 6018a60096e4..0455f377d626 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsc/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/acsc/test/test.js @@ -92,7 +92,7 @@ tape( 'the function computes the arccosecant (positive values)', function test( tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { var v = acsc( NaN ); - t.equal( isnan( v ), true, 'returns NaN' ); + t.equal( isnan( v ), true, 'returns expected value' ); t.end(); }); @@ -103,7 +103,7 @@ tape( 'the function returns `NaN` if provided a nonpositive value greater than ` for ( i = 0; i < 1e3; i++ ) { v = -randu(); if ( v > -1.0 ) { - t.equal( isnan( acsc( v ) ), true, 'returns NaN when provided '+v ); + t.equal( isnan( acsc( v ) ), true, 'returns expected value when provided '+v ); } } t.end(); @@ -116,7 +116,7 @@ tape( 'the function returns `NaN` if provided a nonnegative value less than `+1` for ( i = 0; i < 1e3; i++ ) { v = randu(); if ( v < 1.0 ) { - t.equal( isnan( acsc( v ) ), true, 'returns NaN when provided '+v ); + t.equal( isnan( acsc( v ) ), true, 'returns expected value when provided '+v ); } } t.end(); diff --git a/lib/node_modules/@stdlib/math/base/special/acsc/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acsc/test/test.native.js index e1e7c7647321..ea74c70a450c 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsc/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acsc/test/test.native.js @@ -101,7 +101,7 @@ tape( 'the function computes the arccosecant (positive values)', opts, function tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) { var v = acsc( NaN ); - t.equal( isnan( v ), true, 'returns NaN' ); + t.equal( isnan( v ), true, 'returns expected value' ); t.end(); }); @@ -112,7 +112,7 @@ tape( 'the function returns `NaN` if provided a nonpositive value greater than ` for ( i = 0; i < 1e3; i++ ) { v = -randu(); if ( v > -1.0 ) { - t.equal( isnan( acsc( v ) ), true, 'returns NaN when provided '+v ); + t.equal( isnan( acsc( v ) ), true, 'returns expected value when provided '+v ); } } t.end(); @@ -125,7 +125,7 @@ tape( 'the function returns `NaN` if provided a nonnegative value less than `+1` for ( i = 0; i < 1e3; i++ ) { v = randu(); if ( v < 1.0 ) { - t.equal( isnan( acsc( v ) ), true, 'returns NaN when provided '+v ); + t.equal( isnan( acsc( v ) ), true, 'returns expected value when provided '+v ); } } t.end(); diff --git a/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/benchmark.js index 5bc89021ed53..b6ae390be6eb 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/benchmark.js @@ -21,7 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pkg = require( './../package.json' ).name; var acscd = require( './../lib' ); @@ -34,10 +34,11 @@ bench( pkg, function benchmark( b ) { var y; var i; + x = uniform( 100, 1.0, 3.0 ); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu()*2.0 ) + 1.0; - y = acscd( x ); + y = acscd( x[ i % x.length ] ); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/benchmark.native.js index dfa1a3acb7ac..16e509576279 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/benchmark.native.js @@ -22,7 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; @@ -43,10 +43,11 @@ bench( pkg+'::native', opts, function benchmark( b ) { var y; var i; + x = uniform( 100, 1.0, 3.0 ); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu() * 2.0 ) + 1.0; - y = acscd( x ); + y = acscd( x[ i % x.length ] ); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/c/native/benchmark.c index be59dce70ce9..e0ba6e93184f 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/c/native/benchmark.c @@ -90,16 +90,19 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { + double x[ 100 ]; double elapsed; - double x; double y; double t; int i; + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 2.0 * rand_double() ) + 1.0; + } + t = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - x = ( 2.0 * rand_double() ) + 1.0; - y = stdlib_base_acscd( x ); + y = stdlib_base_acscd( x[ i%100 ] ); if ( y != y ) { printf( "should not return NaN\n" ); break; diff --git a/lib/node_modules/@stdlib/math/base/special/acscd/test/test.js b/lib/node_modules/@stdlib/math/base/special/acscd/test/test.js index e82dec4ca5d4..7a543e3e504e 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscd/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/acscd/test/test.js @@ -92,7 +92,7 @@ tape( 'the function computes the arccosecant in degrees (positive values)', func tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { var v = acscd( NaN ); - t.equal( isnan( v ), true, 'returns NaN' ); + t.equal( isnan( v ), true, 'returns expected value' ); t.end(); }); @@ -102,7 +102,7 @@ tape( 'the function returns `NaN` if provided a value greater than `-1`', functi for ( i = 0; i < 1e3; i++ ) { v = -randu() - EPS; - t.equal( isnan( acscd( v ) ), true, 'returns NaN when provided '+v ); + t.equal( isnan( acscd( v ) ), true, 'returns expected value when provided '+v ); } t.end(); }); @@ -113,7 +113,7 @@ tape( 'the function returns `NaN` if provided a value less than `+1`', function for ( i = 0; i < 1e3; i++ ) { v = (randu()) + EPS; - t.equal( isnan( acscd( v ) ), true, 'returns NaN when provided '+v ); + t.equal( isnan( acscd( v ) ), true, 'returns expected value when provided '+v ); } t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/acscd/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acscd/test/test.native.js index 4837057ca88f..4b35f5b14cff 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscd/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acscd/test/test.native.js @@ -101,7 +101,7 @@ tape( 'the function computes the arccosecant in degrees (positive values)', opts tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) { var v = acscd( NaN ); - t.equal( isnan( v ), true, 'returns NaN' ); + t.equal( isnan( v ), true, 'returns expected value' ); t.end(); }); @@ -111,7 +111,7 @@ tape( 'the function returns `NaN` if provided a value greater than `-1`', opts, for ( i = 0; i < 1e3; i++ ) { v = -randu() - EPS; - t.equal( isnan( acscd( v ) ), true, 'returns NaN when provided '+v ); + t.equal( isnan( acscd( v ) ), true, 'returns expected value when provided '+v ); } t.end(); }); @@ -122,7 +122,7 @@ tape( 'the function returns `NaN` if provided a value less than `+1`', opts, fun for ( i = 0; i < 1e3; i++ ) { v = (randu()) + EPS; - t.equal( isnan( acscd( v ) ), true, 'returns NaN when provided '+v ); + t.equal( isnan( acscd( v ) ), true, 'returns expected value when provided '+v ); } t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/benchmark.js index 4b9f68433406..91b5dd513e7d 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/benchmark.js @@ -21,7 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pkg = require( './../package.json' ).name; var acscdf = require( './../lib' ); @@ -34,10 +34,13 @@ bench( pkg, function benchmark( b ) { var y; var i; + x = uniform( 100, 1.0, 3.0, { + 'dtype': 'float32' + }); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu() * 2.0 ) + 1.0; - y = acscdf( x ); + y = acscdf( x[ i % x.length ] ); if ( isnanf( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/benchmark.native.js index 6687c4ee0c68..60702e9d113a 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/benchmark.native.js @@ -22,7 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; @@ -43,10 +43,13 @@ bench( pkg+'::native', opts, function benchmark( b ) { var y; var i; + x = uniform( 100, 1.0, 3.0, { + 'dtype': 'float32' + }); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu() * 2.0 ) + 1.0; - y = acscdf( x ); + y = acscdf( x[ i % x.length ] ); if ( isnanf( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/c/native/benchmark.c index f30a54dc2e06..10d14d73cf12 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/c/native/benchmark.c @@ -92,14 +92,17 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x; + float x[ 100 ]; float y; int i; + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 2.0f * rand_float() ) + 1.0f; + } + t = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - x = ( 2.0f * rand_float() ) + 1.0f; - y = stdlib_base_acscdf( x ); + y = stdlib_base_acscdf( x[ i%100 ] ); if ( y != y ) { printf( "should not return NaN\n" ); break; diff --git a/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/benchmark.js index bc792b662b5f..7536d238d10f 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/benchmark.js @@ -21,7 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pkg = require( './../package.json' ).name; var acscf = require( './../lib' ); @@ -34,10 +34,13 @@ bench( pkg, function benchmark( b ) { var y; var i; + x = uniform( 100, 1.0, 3.0, { + 'dtype': 'float32' + }); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu() * 2.0 ) + 1.0; - y = acscf( x ); + y = acscf( x[ i % x.length ] ); if ( isnanf( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/benchmark.native.js index 887d274c3838..9c717b2b3e6a 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/benchmark.native.js @@ -22,7 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; @@ -43,10 +43,13 @@ bench( pkg+'::native', opts, function benchmark( b ) { var y; var i; + x = uniform( 100, 1.0, 3.0, { + 'dtype': 'float32' + }); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu() * 2.0 ) + 1.0; - y = acscf( x ); + y = acscf( x[ i % x.length ] ); if ( isnanf( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/c/native/benchmark.c index 8bf45484e22a..e7a18acdbc62 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/c/native/benchmark.c @@ -92,14 +92,17 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x; + float x[ 100 ]; float y; int i; + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 2.0f * rand_float() ) + 1.0f; + } + t = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - x = ( 2.0f * rand_float() ) + 1.0f; - y = stdlib_base_acscf( x ); + y = stdlib_base_acscf( x[ i%100 ] ); if ( y != y ) { printf( "should not return NaN\n" ); break; diff --git a/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/benchmark.js index e6109fe1c338..c6c9113615fd 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/benchmark.js @@ -21,7 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pkg = require( './../package.json' ).name; var acsch = require( './../lib' ); @@ -34,10 +34,11 @@ bench( pkg, function benchmark( b ) { var y; var i; + x = uniform( 100, -100.0, 100.0 ); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu()*200.0 ) - 100.0; - y = acsch( x ); + y = acsch( x[ i % x.length ] ); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/benchmark.native.js index bff387c16ebd..3e16a0e90238 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/benchmark.native.js @@ -22,7 +22,7 @@ var resolve = require( 'path' ).resolve; var bench = require( '@stdlib/bench' ); -var randu = require( '@stdlib/random/base/randu' ); +var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var tryRequire = require( '@stdlib/utils/try-require' ); var pkg = require( './../package.json' ).name; @@ -43,10 +43,11 @@ bench( pkg+'::native', opts, function benchmark( b ) { var y; var i; + x = uniform( 100, -100.0, 100.0 ); + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - x = ( randu()*200.0 ) - 100.0; - y = acsch( x ); + y = acsch( x[ i % x.length ] ); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/c/native/benchmark.c index 33df7762a97c..caffcfeee0a1 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/c/native/benchmark.c @@ -90,16 +90,19 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { + double x[ 100 ]; double elapsed; - double x; double y; double t; int i; + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 200.0*rand_double() ) - 100.0; + } + t = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - x = ( 200.0*rand_double() ) - 100.0; - y = stdlib_base_acsch( x ); + y = stdlib_base_acsch( x[ i%100 ] ); if ( y != y ) { printf( "should not return NaN\n" ); break; diff --git a/lib/node_modules/@stdlib/math/base/special/acsch/test/test.js b/lib/node_modules/@stdlib/math/base/special/acsch/test/test.js index c406c72d5de3..927b4c708181 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsch/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/acsch/test/test.js @@ -372,30 +372,30 @@ tape( 'the function computes the hyperbolic arccosecant on the interval `[1e300, tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { var v = acsch( NaN ); - t.equal( isnan( v ), true, 'returns NaN' ); + t.equal( isnan( v ), true, 'returns expected value' ); t.end(); }); tape( 'the function returns `+infinity` if provided `+0`', function test( t ) { var v = acsch( +0.0 ); - t.equal( v, PINF, 'returns +infinity' ); + t.equal( v, PINF, 'returns expected value' ); t.end(); }); tape( 'the function returns `-infinity` if provided `-0`', function test( t ) { var v = acsch( -0.0 ); - t.equal( v, NINF, 'returns -infinity' ); + t.equal( v, NINF, 'returns expected value' ); t.end(); }); tape( 'the function returns `-0` if provided `-infinity`', function test( t ) { var v = acsch( NINF ); - t.equal( isNegativeZero( v ), true, 'returns -0' ); + t.equal( isNegativeZero( v ), true, 'returns expected value' ); t.end(); }); tape( 'the function returns `+0` if provided `+infinity`', function test( t ) { var v = acsch( PINF ); - t.equal( isPositiveZero( v ), true, 'returns +0' ); + t.equal( isPositiveZero( v ), true, 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/acsch/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acsch/test/test.native.js index f200d801c16b..4741a5a63384 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsch/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acsch/test/test.native.js @@ -381,30 +381,30 @@ tape( 'the function computes the hyperbolic arccosecant on the interval `[1e300, tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) { var v = acsch( NaN ); - t.equal( isnan( v ), true, 'returns NaN' ); + t.equal( isnan( v ), true, 'returns expected value' ); t.end(); }); tape( 'the function returns `+infinity` if provided `+0`', opts, function test( t ) { var v = acsch( +0.0 ); - t.equal( v, PINF, 'returns +infinity' ); + t.equal( v, PINF, 'returns expected value' ); t.end(); }); tape( 'the function returns `-infinity` if provided `-0`', opts, function test( t ) { var v = acsch( -0.0 ); - t.equal( v, NINF, 'returns -infinity' ); + t.equal( v, NINF, 'returns expected value' ); t.end(); }); tape( 'the function returns `-0` if provided `-infinity`', opts, function test( t ) { var v = acsch( NINF ); - t.equal( isNegativeZero( v ), true, 'returns -0' ); + t.equal( isNegativeZero( v ), true, 'returns expected value' ); t.end(); }); tape( 'the function returns `+0` if provided `+infinity`', opts, function test( t ) { var v = acsch( PINF ); - t.equal( isPositiveZero( v ), true, 'returns +0' ); + t.equal( isPositiveZero( v ), true, 'returns expected value' ); t.end(); });