From 120a6177d86f01c91a28b0665d43ff03cdd3bb75 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 7 Jul 2024 17:06:01 +0000 Subject: [PATCH] Auto-generated commit --- CHANGELOG.md | 2 ++ base/special/acosd/lib/main.js | 4 ++-- base/special/acotd/lib/main.js | 4 ++-- base/special/acscdf/test/test.js | 2 +- base/special/acscdf/test/test.native.js | 2 +- .../special/asec/benchmark/benchmark.native.js | 18 +++++++++--------- base/special/asecd/test/test.js | 4 ++-- base/special/asecd/test/test.native.js | 4 ++-- base/special/asecf/test/test.js | 2 +- base/special/asecf/test/test.native.js | 2 +- base/special/asindf/test/test.js | 2 +- base/special/asindf/test/test.native.js | 2 +- base/special/bessely1/test/test.js | 2 +- base/special/beta/lib/main.js | 2 +- base/special/boxcox/test/test.js | 2 +- base/special/boxcox/test/test.native.js | 2 +- base/special/boxcox1p/test/test.js | 2 +- base/special/boxcox1p/test/test.native.js | 2 +- base/special/boxcox1pinv/test/test.js | 2 +- base/special/boxcox1pinv/test/test.native.js | 2 +- base/special/boxcoxinv/test/test.js | 2 +- base/special/boxcoxinv/test/test.native.js | 2 +- base/special/cexp/lib/main.js | 2 +- base/special/cinv/lib/main.js | 2 +- base/special/cosm1/test/test.js | 6 +++--- base/special/csc/lib/index.js | 2 +- base/special/csc/lib/main.js | 4 ++-- base/special/csc/test/test.js | 4 ++-- base/special/exp/lib/expmulti.js | 2 +- base/special/expm1rel/test/test.js | 12 ++++++------ base/special/expm1rel/test/test.native.js | 12 ++++++------ base/special/fast/pow-int/test/test.js | 2 +- base/special/fast/pow-int/test/test.native.js | 2 +- .../lib/gamma_delta_ratio_lanczos.js | 2 +- base/special/gammainc/lib/main.js | 4 ++-- base/special/gammainc/test/test.js | 2 +- base/special/gammaincinv/lib/compute.js | 2 +- base/special/kernel-betainc/lib/assign.js | 2 +- .../kernel-betaincinv/lib/halley_iterate.js | 2 +- base/special/kernel-betaincinv/lib/temme2.js | 2 +- base/special/log1mexp/test/test.js | 6 +++--- base/special/log1mexp/test/test.native.js | 6 +++--- base/special/nanmax/lib/main.js | 6 +++--- base/special/nanmin/lib/main.js | 6 +++--- base/special/rad2degf/test/test.js | 2 +- base/special/rad2degf/test/test.native.js | 2 +- base/tools/hermitepoly/test/test.factory.js | 6 +++--- base/tools/hermitepoly/test/test.js | 6 +++--- .../tools/normhermitepoly/test/test.factory.js | 6 +++--- base/tools/normhermitepoly/test/test.js | 6 +++--- base/tools/normhermitepolyf/lib/factory.js | 2 +- .../normhermitepolyf/test/test.factory.js | 6 +++--- base/tools/normhermitepolyf/test/test.js | 6 +++--- iter/sequences/tribonacci/examples/index.js | 2 +- 54 files changed, 102 insertions(+), 100 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 725f4eff6..1fb579b93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4900,6 +4900,8 @@ A total of 29 people contributed to this release. Thank you to the following con
+- [`659f752`](https://github.com/stdlib-js/stdlib/commit/659f752db18317bf5fc237fdbcad0d74b61e1ed9) - **style:** add missing spaces _(by Philipp Burckhardt)_ +- [`a78f7d1`](https://github.com/stdlib-js/stdlib/commit/a78f7d1b859b6b1d7b0bc0ee4daf76789e3e0910) - **style:** add missing spaces _(by Philipp Burckhardt)_ - [`d4fd701`](https://github.com/stdlib-js/stdlib/commit/d4fd701ae65d28edea1410a6f5a757ac39214f68) - **feat:** add C implementation for `math/base/special/beta` _(by Gunj Joshi, Philipp Burckhardt)_ - [`39ecc03`](https://github.com/stdlib-js/stdlib/commit/39ecc037f60bef2fa539739fa3ad4556b09f3918) - **chore:** update package meta data [(#2530)](https://github.com/stdlib-js/stdlib/pull/2530) _(by stdlib-bot, Athan Reines)_ - [`457662c`](https://github.com/stdlib-js/stdlib/commit/457662c8e8bcd3ff74edc7d820d882119b40cfbe) - **style:** add linebreak _(by Athan Reines)_ diff --git a/base/special/acosd/lib/main.js b/base/special/acosd/lib/main.js index 39c796a0e..8bf680108 100644 --- a/base/special/acosd/lib/main.js +++ b/base/special/acosd/lib/main.js @@ -20,8 +20,8 @@ // MODULES // -var rad2deg = require('./../../../../base/special/rad2deg'); -var acos = require('./../../../../base/special/acos'); +var rad2deg = require( './../../../../base/special/rad2deg' ); +var acos = require( './../../../../base/special/acos' ); // MAIN // diff --git a/base/special/acotd/lib/main.js b/base/special/acotd/lib/main.js index 7e3edfd95..7d3fee600 100644 --- a/base/special/acotd/lib/main.js +++ b/base/special/acotd/lib/main.js @@ -53,8 +53,8 @@ var acot = require( './../../../../base/special/acot' ); * // returns NaN */ function acotd( x ) { - var rad = acot(x); - return rad2deg(rad); + var rad = acot( x ); + return rad2deg( rad ); } diff --git a/base/special/acscdf/test/test.js b/base/special/acscdf/test/test.js index 00e5424c0..6d7d6c73e 100644 --- a/base/special/acscdf/test/test.js +++ b/base/special/acscdf/test/test.js @@ -25,7 +25,7 @@ var isnanf = require( './../../../../base/assert/is-nanf' ); var uniform = require( '@stdlib/random/base/uniform' ); var abs = require( './../../../../base/special/abs' ); var EPS = require( '@stdlib/constants/float32/eps' ); -var float64ToFloat32 = require('@stdlib/number/float64/base/to-float32'); +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var acscdf = require( './../lib' ); diff --git a/base/special/acscdf/test/test.native.js b/base/special/acscdf/test/test.native.js index 5da8bc6b0..b1b1d0aa9 100644 --- a/base/special/acscdf/test/test.native.js +++ b/base/special/acscdf/test/test.native.js @@ -26,7 +26,7 @@ var isnanf = require( './../../../../base/assert/is-nanf' ); var uniform = require( '@stdlib/random/base/uniform' ); var abs = require( './../../../../base/special/abs' ); var EPS = require( '@stdlib/constants/float32/eps' ); -var float64ToFloat32 = require('@stdlib/number/float64/base/to-float32'); +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/asec/benchmark/benchmark.native.js b/base/special/asec/benchmark/benchmark.native.js index f0674bac0..13334c3db 100644 --- a/base/special/asec/benchmark/benchmark.native.js +++ b/base/special/asec/benchmark/benchmark.native.js @@ -20,25 +20,25 @@ // MODULES // -var resolve = require('path').resolve; -var bench = require('@stdlib/bench'); -var randu = require('@stdlib/random/base/randu'); -var isnan = require('./../../../../base/assert/is-nan'); -var tryRequire = require('@stdlib/utils/try-require'); -var pkg = require('./../package.json').name; +var resolve = require( 'path' ).resolve; +var bench = require( '@stdlib/bench' ); +var randu = require( '@stdlib/random/base/randu' ); +var isnan = require( './../../../../base/assert/is-nan' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var pkg = require( './../package.json' ).name; // VARIABLES // -var asec = tryRequire(resolve(__dirname, './../lib/native.js')); +var asec = tryRequire( resolve( __dirname, './../lib/native.js' ) ); var opts = { - 'skip': (asec instanceof Error) + 'skip': ( asec instanceof Error ) }; // MAIN // -bench(pkg + '::native', opts, function benchmark(b) { +bench( pkg + '::native', opts, function benchmark( b ) { var y; var i; var x; diff --git a/base/special/asecd/test/test.js b/base/special/asecd/test/test.js index 1235bba1e..6814c33c0 100644 --- a/base/special/asecd/test/test.js +++ b/base/special/asecd/test/test.js @@ -22,9 +22,9 @@ var tape = require( 'tape' ); var isnan = require( './../../../../base/assert/is-nan' ); -var abs = require('./../../../../base/special/abs'); +var abs = require( './../../../../base/special/abs' ); var EPS = require( '@stdlib/constants/float64/eps' ); -var randu = require('@stdlib/random/base/randu'); +var randu = require( '@stdlib/random/base/randu' ); var asecd = require( './../lib' ); diff --git a/base/special/asecd/test/test.native.js b/base/special/asecd/test/test.native.js index 6dc85d946..62163ab14 100644 --- a/base/special/asecd/test/test.native.js +++ b/base/special/asecd/test/test.native.js @@ -23,9 +23,9 @@ var resolve = require( 'path' ).resolve; var tape = require( 'tape' ); var isnan = require( './../../../../base/assert/is-nan' ); -var abs = require('./../../../../base/special/abs'); +var abs = require( './../../../../base/special/abs' ); var EPS = require( '@stdlib/constants/float64/eps' ); -var randu = require('@stdlib/random/base/randu'); +var randu = require( '@stdlib/random/base/randu' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/asecf/test/test.js b/base/special/asecf/test/test.js index 3673bb061..1a9203547 100644 --- a/base/special/asecf/test/test.js +++ b/base/special/asecf/test/test.js @@ -24,7 +24,7 @@ var tape = require( 'tape' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var EPS = require( '@stdlib/constants/float32/eps' ); var abs = require( './../../../../base/special/abs' ); -var float64ToFloat32 = require('@stdlib/number/float64/base/to-float32'); +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var asecf = require( './../lib' ); diff --git a/base/special/asecf/test/test.native.js b/base/special/asecf/test/test.native.js index 6b741d028..2257f2830 100644 --- a/base/special/asecf/test/test.native.js +++ b/base/special/asecf/test/test.native.js @@ -25,7 +25,7 @@ var tape = require( 'tape' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var EPS = require( '@stdlib/constants/float32/eps' ); var abs = require( './../../../../base/special/abs' ); -var float64ToFloat32 = require('@stdlib/number/float64/base/to-float32'); +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/asindf/test/test.js b/base/special/asindf/test/test.js index e8fc1b6a1..1d1a25053 100644 --- a/base/special/asindf/test/test.js +++ b/base/special/asindf/test/test.js @@ -25,7 +25,7 @@ var isnanf = require( './../../../../base/assert/is-nanf' ); var uniform = require( '@stdlib/random/base/uniform' ); var abs = require( './../../../../base/special/abs' ); var EPS = require( '@stdlib/constants/float32/eps' ); -var float64ToFloat32 = require('@stdlib/number/float64/base/to-float32'); +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var asindf = require( './../lib' ); diff --git a/base/special/asindf/test/test.native.js b/base/special/asindf/test/test.native.js index 437270ea2..f6faf8627 100644 --- a/base/special/asindf/test/test.native.js +++ b/base/special/asindf/test/test.native.js @@ -26,7 +26,7 @@ var isnanf = require( './../../../../base/assert/is-nanf' ); var uniform = require( '@stdlib/random/base/uniform' ); var abs = require( './../../../../base/special/abs' ); var EPS = require( '@stdlib/constants/float32/eps' ); -var float64ToFloat32 = require('@stdlib/number/float64/base/to-float32'); +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/special/bessely1/test/test.js b/base/special/bessely1/test/test.js index 0c879afac..2411fdb13 100644 --- a/base/special/bessely1/test/test.js +++ b/base/special/bessely1/test/test.js @@ -197,7 +197,7 @@ tape( 'The Bessel function of the second kind of one order (Y_1) (subnormal valu x = subnormal.x; for ( i = 0; i < x.length; i++ ) { y = y1( x[i] ); - t.equal( y, NINF, 'returns -Infinity'); + t.equal( y, NINF, 'returns -Infinity' ); } t.end(); }); diff --git a/base/special/beta/lib/main.js b/base/special/beta/lib/main.js index c6eac8ed8..67737ee91 100644 --- a/base/special/beta/lib/main.js +++ b/base/special/beta/lib/main.js @@ -143,7 +143,7 @@ function beta( a, b ) { } else { res *= pow( (agh*bgh)/(cgh*cgh), b ); } - res *= sqrt( E/bgh); + res *= sqrt( E/bgh ); return res; } diff --git a/base/special/boxcox/test/test.js b/base/special/boxcox/test/test.js index cea12ceaa..41b230ae5 100644 --- a/base/special/boxcox/test/test.js +++ b/base/special/boxcox/test/test.js @@ -48,7 +48,7 @@ tape( 'main export is a function', function test( t ) { tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { var b; - b = boxcox( NaN, 1.0); + b = boxcox( NaN, 1.0 ); t.equal( isnan( b ), true, 'returns NaN' ); b = boxcox( 1.0, NaN ); diff --git a/base/special/boxcox/test/test.native.js b/base/special/boxcox/test/test.native.js index 97448ecfb..ca95d9898 100644 --- a/base/special/boxcox/test/test.native.js +++ b/base/special/boxcox/test/test.native.js @@ -57,7 +57,7 @@ tape( 'main export is a function', opts, function test( t ) { tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) { var b; - b = boxcox( NaN, 1.0); + b = boxcox( NaN, 1.0 ); t.equal( isnan( b ), true, 'returns NaN' ); b = boxcox( 1.0, NaN ); diff --git a/base/special/boxcox1p/test/test.js b/base/special/boxcox1p/test/test.js index 87b82b3a5..fdf3e0a8d 100644 --- a/base/special/boxcox1p/test/test.js +++ b/base/special/boxcox1p/test/test.js @@ -50,7 +50,7 @@ tape( 'main export is a function', function test( t ) { tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { var b; - b = boxcox1p( NaN, 1.0); + b = boxcox1p( NaN, 1.0 ); t.equal( isnan( b ), true, 'returns NaN' ); b = boxcox1p( 1.0, NaN ); diff --git a/base/special/boxcox1p/test/test.native.js b/base/special/boxcox1p/test/test.native.js index b2a4ec278..639dea030 100644 --- a/base/special/boxcox1p/test/test.native.js +++ b/base/special/boxcox1p/test/test.native.js @@ -59,7 +59,7 @@ tape( 'main export is a function', opts, function test( t ) { tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) { var b; - b = boxcox1p( NaN, 1.0); + b = boxcox1p( NaN, 1.0 ); t.equal( isnan( b ), true, 'returns NaN' ); b = boxcox1p( 1.0, NaN ); diff --git a/base/special/boxcox1pinv/test/test.js b/base/special/boxcox1pinv/test/test.js index 9dfbcc22a..3af283aee 100644 --- a/base/special/boxcox1pinv/test/test.js +++ b/base/special/boxcox1pinv/test/test.js @@ -50,7 +50,7 @@ tape( 'main export is a function', function test( t ) { tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { var b; - b = boxcox1pinv( NaN, 1.0); + b = boxcox1pinv( NaN, 1.0 ); t.equal( isnan( b ), true, 'returns NaN' ); b = boxcox1pinv( 1.0, NaN ); diff --git a/base/special/boxcox1pinv/test/test.native.js b/base/special/boxcox1pinv/test/test.native.js index 2e2cdeb27..3dbc964c5 100644 --- a/base/special/boxcox1pinv/test/test.native.js +++ b/base/special/boxcox1pinv/test/test.native.js @@ -59,7 +59,7 @@ tape( 'main export is a function', opts, function test( t ) { tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) { var b; - b = boxcox1pinv( NaN, 1.0); + b = boxcox1pinv( NaN, 1.0 ); t.equal( isnan( b ), true, 'returns NaN' ); b = boxcox1pinv( 1.0, NaN ); diff --git a/base/special/boxcoxinv/test/test.js b/base/special/boxcoxinv/test/test.js index 100dbb46b..61d32b31d 100644 --- a/base/special/boxcoxinv/test/test.js +++ b/base/special/boxcoxinv/test/test.js @@ -49,7 +49,7 @@ tape( 'main export is a function', function test( t ) { tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { var b; - b = boxcoxinv( NaN, 1.0); + b = boxcoxinv( NaN, 1.0 ); t.equal( isnan( b ), true, 'returns NaN' ); b = boxcoxinv( 1.0, NaN ); diff --git a/base/special/boxcoxinv/test/test.native.js b/base/special/boxcoxinv/test/test.native.js index adec6fa89..fbb810057 100644 --- a/base/special/boxcoxinv/test/test.native.js +++ b/base/special/boxcoxinv/test/test.native.js @@ -58,7 +58,7 @@ tape( 'main export is a function', opts, function test( t ) { tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) { var b; - b = boxcoxinv( NaN, 1.0); + b = boxcoxinv( NaN, 1.0 ); t.equal( isnan( b ), true, 'returns NaN' ); b = boxcoxinv( 1.0, NaN ); diff --git a/base/special/cexp/lib/main.js b/base/special/cexp/lib/main.js index fe946f6fd..fda704d83 100644 --- a/base/special/cexp/lib/main.js +++ b/base/special/cexp/lib/main.js @@ -20,7 +20,7 @@ // MODULES // -var Complex128 = require('@stdlib/complex/float64/ctor'); +var Complex128 = require( '@stdlib/complex/float64/ctor' ); var copysign = require( './../../../../base/special/copysign' ); var sincos = require( './../../../../base/special/sincos' ); var isnan = require( './../../../../base/assert/is-nan' ); diff --git a/base/special/cinv/lib/main.js b/base/special/cinv/lib/main.js index 2570039cc..01bc69d94 100644 --- a/base/special/cinv/lib/main.js +++ b/base/special/cinv/lib/main.js @@ -97,7 +97,7 @@ function cinv( z ) { } re *= s; im *= s; - return new Complex128( re, im); + return new Complex128( re, im ); } diff --git a/base/special/cosm1/test/test.js b/base/special/cosm1/test/test.js index a4a664682..f05da8b5d 100644 --- a/base/special/cosm1/test/test.js +++ b/base/special/cosm1/test/test.js @@ -69,7 +69,7 @@ tape( 'the function computes the cosine minues one more accurately inside the in } else { delta = abs( y - expected[i] ); tol = 2.0 * EPS * abs( expected[i] ); - t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. Value: '+y+'. E: '+expected[i]+'. tol: '+tol+'. Δ: '+delta+'.'); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. Value: '+y+'. E: '+expected[i]+'. tol: '+tol+'. Δ: '+delta+'.' ); } } @@ -91,7 +91,7 @@ tape( 'the function computes `cos(x) - 1.0` outside the interval [-π/4,π/4]', expected = cos( x[i] ) - 1; delta = abs( y - expected ); tol = EPS * abs( expected ); - t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. Value: '+y+'. E: '+expected+'. tol: '+tol+'. Δ: '+delta+'.'); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. Value: '+y+'. E: '+expected+'. tol: '+tol+'. Δ: '+delta+'.' ); } x = linspace( -4.0*PI, NPIO4, 100 ); @@ -101,7 +101,7 @@ tape( 'the function computes `cos(x) - 1.0` outside the interval [-π/4,π/4]', expected = cos( x[i] ) - 1.0; delta = abs( y - expected ); tol = EPS * abs( expected ); - t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. Value: '+y+'. E: '+expected+'. tol: '+tol+'. Δ: '+delta+'.'); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. Value: '+y+'. E: '+expected+'. tol: '+tol+'. Δ: '+delta+'.' ); } t.end(); diff --git a/base/special/csc/lib/index.js b/base/special/csc/lib/index.js index 515070b6d..26e8d1037 100644 --- a/base/special/csc/lib/index.js +++ b/base/special/csc/lib/index.js @@ -44,7 +44,7 @@ // MODULES // -var main = require('./main.js'); +var main = require( './main.js' ); // EXPORTS // diff --git a/base/special/csc/lib/main.js b/base/special/csc/lib/main.js index 19950cdaa..4957af951 100644 --- a/base/special/csc/lib/main.js +++ b/base/special/csc/lib/main.js @@ -20,7 +20,7 @@ // MODULES // -var sin = require('./../../../../base/special/sin'); +var sin = require( './../../../../base/special/sin' ); // MAIN // @@ -52,7 +52,7 @@ var sin = require('./../../../../base/special/sin'); * // returns NaN */ function csc( x ) { - return 1.0 / sin(x); + return 1.0 / sin( x ); } diff --git a/base/special/csc/test/test.js b/base/special/csc/test/test.js index 243bc3857..b3348b015 100644 --- a/base/special/csc/test/test.js +++ b/base/special/csc/test/test.js @@ -50,8 +50,8 @@ var tinyPositive = require( './fixtures/julia/tiny_positive.json' ); // TESTS // tape( 'main export is a function', function test( t ) { - t.ok(true, __filename); - t.true(typeof csc, 'function', 'main export is a function'); + t.ok( true, __filename ); + t.true( typeof csc, 'function', 'main export is a function' ); t.end(); }); diff --git a/base/special/exp/lib/expmulti.js b/base/special/exp/lib/expmulti.js index 21ae1c8de..da0d0a5f0 100644 --- a/base/special/exp/lib/expmulti.js +++ b/base/special/exp/lib/expmulti.js @@ -88,7 +88,7 @@ function expmulti( hi, lo, k ) { r = hi - lo; t = r * r; c = r - ( t*polyvalP( t ) ); - y = 1.0 - ( lo - ( (r*c)/(2.0-c) ) - hi); + y = 1.0 - ( lo - ( (r*c)/(2.0-c) ) - hi ); return ldexp( y, k ); } diff --git a/base/special/expm1rel/test/test.js b/base/special/expm1rel/test/test.js index 710466480..ee3e959b6 100644 --- a/base/special/expm1rel/test/test.js +++ b/base/special/expm1rel/test/test.js @@ -148,23 +148,23 @@ tape( 'the function accurately computes `(exp(x)-1)/x` for very small `x`', func tape( 'the function returns `1.0` near `0.0`', function test( t ) { t.equal( expm1rel( 0 ), 1.0, 'equals 1.0' ); - t.equal( expm1rel( EPS ), 1.0, 'equals 1.0'); - t.equal( expm1rel( -EPS ), 1.0, 'equals 1.0'); + t.equal( expm1rel( EPS ), 1.0, 'equals 1.0' ); + t.equal( expm1rel( -EPS ), 1.0, 'equals 1.0' ); t.end(); }); -tape( 'the function returns `NaN` when evaulated at `NaN`', function test( t ) { +tape( 'the function returns `NaN` when evaluated at `NaN`', function test( t ) { var y = expm1rel( NaN ); - t.equal( isnan( y ), true, 'equals NaN'); + t.equal( isnan( y ), true, 'equals NaN' ); t.end(); }); tape('the function returns `+infinity` at `+infinity`', function test( t ) { - t.equal( expm1rel( PINF ), PINF, 'equals +infinity'); + t.equal( expm1rel( PINF ), PINF, 'equals +infinity' ); t.end(); }); tape('the function returns `0` at `-infinity`', function test( t ) { - t.equal( expm1rel( NINF ), 0.0, 'equals 0'); + t.equal( expm1rel( NINF ), 0.0, 'equals 0' ); t.end(); }); diff --git a/base/special/expm1rel/test/test.native.js b/base/special/expm1rel/test/test.native.js index 317cd8fb0..70e920fa7 100644 --- a/base/special/expm1rel/test/test.native.js +++ b/base/special/expm1rel/test/test.native.js @@ -157,23 +157,23 @@ tape( 'the function accurately computes `(exp(x)-1)/x` for very small `x`', opts tape( 'the function returns `1.0` near `0.0`', opts, function test( t ) { t.equal( expm1rel( 0 ), 1.0, 'equals 1.0' ); - t.equal( expm1rel( EPS ), 1.0, 'equals 1.0'); - t.equal( expm1rel( -EPS ), 1.0, 'equals 1.0'); + t.equal( expm1rel( EPS ), 1.0, 'equals 1.0' ); + t.equal( expm1rel( -EPS ), 1.0, 'equals 1.0' ); t.end(); }); -tape( 'the function returns `NaN` when evaulated at `NaN`', opts, function test( t ) { +tape( 'the function returns `NaN` when evaluated at `NaN`', opts, function test( t ) { var y = expm1rel( NaN ); - t.equal( isnan( y ), true, 'equals NaN'); + t.equal( isnan( y ), true, 'equals NaN' ); t.end(); }); tape('the function returns `+infinity` at `+infinity`', opts, function test( t ) { - t.equal( expm1rel( PINF ), PINF, 'equals +infinity'); + t.equal( expm1rel( PINF ), PINF, 'equals +infinity' ); t.end(); }); tape('the function returns `0` at `-infinity`', opts, function test( t ) { - t.equal( expm1rel( NINF ), 0.0, 'equals 0'); + t.equal( expm1rel( NINF ), 0.0, 'equals 0' ); t.end(); }); diff --git a/base/special/fast/pow-int/test/test.js b/base/special/fast/pow-int/test/test.js index 1797ede26..ce5759a50 100644 --- a/base/special/fast/pow-int/test/test.js +++ b/base/special/fast/pow-int/test/test.js @@ -212,7 +212,7 @@ tape( '`+-0` raised to a positive even integer is `0`', function test( t ) { v = pow( +0.0, y ); t.strictEqual( isPositiveZero( v ), true, 'pow(0,'+y+') returns +0' ); - v = pow( -0.0, y); + v = pow( -0.0, y ); t.strictEqual( isPositiveZero( v ), true, 'pow(-0,'+y+') returns +0' ); } t.end(); diff --git a/base/special/fast/pow-int/test/test.native.js b/base/special/fast/pow-int/test/test.native.js index 530e48f9e..22b157712 100644 --- a/base/special/fast/pow-int/test/test.native.js +++ b/base/special/fast/pow-int/test/test.native.js @@ -221,7 +221,7 @@ tape( '`+-0` raised to a positive even integer is `0`', opts, function test( t ) v = pow( +0.0, y ); t.strictEqual( isPositiveZero( v ), true, 'pow(0,'+y+') returns +0' ); - v = pow( -0.0, y); + v = pow( -0.0, y ); t.strictEqual( isPositiveZero( v ), true, 'pow(-0,'+y+') returns +0' ); } t.end(); diff --git a/base/special/gamma-delta-ratio/lib/gamma_delta_ratio_lanczos.js b/base/special/gamma-delta-ratio/lib/gamma_delta_ratio_lanczos.js index ca80ea035..f22e35428 100644 --- a/base/special/gamma-delta-ratio/lib/gamma_delta_ratio_lanczos.js +++ b/base/special/gamma-delta-ratio/lib/gamma_delta_ratio_lanczos.js @@ -97,7 +97,7 @@ function gammaDeltaRatioLanczos( z, delta ) { } } else { if ( abs(delta) < 10.0 ) { - result = exp( ( 0.5-z ) * log1p( delta/zgh )); + result = exp( ( 0.5-z ) * log1p( delta/zgh ) ); } else { result = pow( zgh / (zgh+delta), z-0.5 ); } diff --git a/base/special/gammainc/lib/main.js b/base/special/gammainc/lib/main.js index 7ef92777f..e5f3cb0f0 100644 --- a/base/special/gammainc/lib/main.js +++ b/base/special/gammainc/lib/main.js @@ -125,7 +125,7 @@ function gammainc( x, a, regularized, upper ) { // This is method 2 below, done in logs, we're really outside the range of this method, but since the result is almost certainly infinite, we should probably be OK: result = ( a * ln( x ) ) - x; initValue = 0.0; - result += ln( lowerGammaSeries( a, x, initValue ) / a); + result += ln( lowerGammaSeries( a, x, initValue ) / a ); } } else { @@ -223,7 +223,7 @@ function gammainc( x, a, regularized, upper ) { initValue = 0.0; optimisedInvert = false; if ( invert ) { - initValue = ( normalized ) ? 1.0 : gamma(a); + initValue = ( normalized ) ? 1.0 : gamma( a ); if ( normalized || result >= 1.0 || diff --git a/base/special/gammainc/test/test.js b/base/special/gammainc/test/test.js index 07dc23ccc..0310c359e 100644 --- a/base/special/gammainc/test/test.js +++ b/base/special/gammainc/test/test.js @@ -30,7 +30,7 @@ var gammainc = require( './../lib' ); // FIXTURES // -var fixtures = require( './fixtures/cpp/output.json'); +var fixtures = require( './fixtures/cpp/output.json' ); var expected1 = fixtures.lower_regularized; var expected2 = fixtures.upper_regularized; var expected3 = fixtures.lower_unregularized; diff --git a/base/special/gammaincinv/lib/compute.js b/base/special/gammaincinv/lib/compute.js index 29047ea4f..62b97fab8 100644 --- a/base/special/gammaincinv/lib/compute.js +++ b/base/special/gammaincinv/lib/compute.js @@ -156,7 +156,7 @@ function compute( a, p, q ) { } if ( q < 1.0e-30 && a < HALF ) { m = 0; - x0 = -ln( q*gamma(a) ) + ( ( a-1.0 ) * ln( -ln( q*gamma(a) ) )); + x0 = -ln( q*gamma(a) ) + ( ( a-1.0 ) * ln( -ln( q*gamma(a) ) ) ); k = 1; lgama = gammaln( a ); } diff --git a/base/special/kernel-betainc/lib/assign.js b/base/special/kernel-betainc/lib/assign.js index 12ee2460e..61fd97275 100644 --- a/base/special/kernel-betainc/lib/assign.js +++ b/base/special/kernel-betainc/lib/assign.js @@ -55,7 +55,7 @@ var PI = require( '@stdlib/constants/float64/pi' ); var betaSmallBLargeASeries = require( './beta_small_b_large_a_series.js' ); var risingFactorialRatio = require( './rising_factorial_ratio.js' ); var ibetaPowerTerms = require( './ibeta_power_terms.js' ); -var ibetaFraction2 = require( './ibeta_fraction2.js'); +var ibetaFraction2 = require( './ibeta_fraction2.js' ); var binomialCCDF = require( './binomial_ccdf.js' ); var ibetaAStep = require( './ibeta_a_step.js' ); var ibetaSeries = require( './ibeta_series.js' ); diff --git a/base/special/kernel-betaincinv/lib/halley_iterate.js b/base/special/kernel-betaincinv/lib/halley_iterate.js index 48fd39341..9c7f8b2a5 100644 --- a/base/special/kernel-betaincinv/lib/halley_iterate.js +++ b/base/special/kernel-betaincinv/lib/halley_iterate.js @@ -86,7 +86,7 @@ function halleyIterate( fun, guess, minimum, maximum, digits, maxIter ) { f0Last = f0; delta2 = delta1; delta1 = delta; - res = fun( result); + res = fun( result ); f0 = res[ 0 ]; f1 = res[ 1 ]; f2 = res[ 2 ]; diff --git a/base/special/kernel-betaincinv/lib/temme2.js b/base/special/kernel-betaincinv/lib/temme2.js index 714b609f8..8b00daf57 100644 --- a/base/special/kernel-betaincinv/lib/temme2.js +++ b/base/special/kernel-betaincinv/lib/temme2.js @@ -42,7 +42,7 @@ var ln = require( './../../../../base/special/ln' ); var sqrt = require( './../../../../base/special/sqrt' ); var sin = require( './../../../../base/special/sin' ); var cos = require( './../../../../base/special/cos' ); -var temmeRootFinder = require( './root_finder.js'); +var temmeRootFinder = require( './root_finder.js' ); var newtonRaphsonIterate = require( './newton_raphson.js' ); var polyval1 = require( './polyval_co1.js' ); var polyval2 = require( './polyval_co2.js' ); diff --git a/base/special/log1mexp/test/test.js b/base/special/log1mexp/test/test.js index 01aac88a7..a80bad092 100644 --- a/base/special/log1mexp/test/test.js +++ b/base/special/log1mexp/test/test.js @@ -58,10 +58,10 @@ tape( 'if provided `+-0`, the function returns -infinity', function test( t ) { var v; v = log1mexp( 0.0 ); - t.strictEqual(v, NINF, 'returns -infinity'); + t.strictEqual( v, NINF, 'returns -infinity' ); v = log1mexp( -0.0 ); - t.strictEqual(v, NINF, 'returns -infinity'); + t.strictEqual( v, NINF, 'returns -infinity' ); t.end(); }); @@ -75,7 +75,7 @@ tape( 'the function computes the natural logarithm of `1-exp(-|x|)` (`0 < |x| <= for ( i = 0; i < 1e3; i++ ) { v = randu() * LN2; x = log1mexp( v ); - y = ln( -expm1( -v )); + y = ln( -expm1( -v ) ); t.strictEqual( x, y, 'returns '+y+' when provided '+v ); } t.end(); diff --git a/base/special/log1mexp/test/test.native.js b/base/special/log1mexp/test/test.native.js index fb69f207f..2315a4c92 100644 --- a/base/special/log1mexp/test/test.native.js +++ b/base/special/log1mexp/test/test.native.js @@ -67,10 +67,10 @@ tape( 'if provided `+-0`, the function returns -infinity', opts, function test( var v; v = log1mexp( 0.0 ); - t.strictEqual(v, NINF, 'returns -infinity'); + t.strictEqual( v, NINF, 'returns -infinity' ); v = log1mexp( -0.0 ); - t.strictEqual(v, NINF, 'returns -infinity'); + t.strictEqual( v, NINF, 'returns -infinity' ); t.end(); }); @@ -84,7 +84,7 @@ tape( 'the function computes the natural logarithm of `1-exp(-|x|)` (`0 < |x| <= for ( i = 0; i < 1e3; i++ ) { v = randu() * LN2; x = log1mexp( v ); - y = ln( -expm1( -v )); + y = ln( -expm1( -v ) ); t.strictEqual( x, y, 'returns '+y+' when provided '+v ); } t.end(); diff --git a/base/special/nanmax/lib/main.js b/base/special/nanmax/lib/main.js index 7d2ee7ac4..ae9b0e036 100644 --- a/base/special/nanmax/lib/main.js +++ b/base/special/nanmax/lib/main.js @@ -20,8 +20,8 @@ // MODULES // -var max = require( './../../../../base/special/max'); -var isnan = require( './../../../../base/assert/is-nan'); +var max = require( './../../../../base/special/max' ); +var isnan = require( './../../../../base/assert/is-nan' ); // MAIN // @@ -42,7 +42,7 @@ var isnan = require( './../../../../base/assert/is-nan'); * // returns 4.14 * * @example -* var v = nanmax( NaN, NaN); +* var v = nanmax( NaN, NaN ); * // returns NaN */ function nanmax( x, y ) { diff --git a/base/special/nanmin/lib/main.js b/base/special/nanmin/lib/main.js index 80b4a853a..1cd307d79 100644 --- a/base/special/nanmin/lib/main.js +++ b/base/special/nanmin/lib/main.js @@ -20,8 +20,8 @@ // MODULES // -var min = require( './../../../../base/special/min'); -var isnan = require( './../../../../base/assert/is-nan'); +var min = require( './../../../../base/special/min' ); +var isnan = require( './../../../../base/assert/is-nan' ); // MAIN // @@ -42,7 +42,7 @@ var isnan = require( './../../../../base/assert/is-nan'); * // returns 4.14 * * @example -* var v = nanmin( NaN, NaN); +* var v = nanmin( NaN, NaN ); * // returns NaN */ function nanmin( x, y ) { diff --git a/base/special/rad2degf/test/test.js b/base/special/rad2degf/test/test.js index 69601d162..61b4cc2ac 100644 --- a/base/special/rad2degf/test/test.js +++ b/base/special/rad2degf/test/test.js @@ -27,7 +27,7 @@ var PI = require( '@stdlib/constants/float32/pi' ); var EPS = require( '@stdlib/constants/float32/eps' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var abs = require( './../../../../base/special/abs' ); -var float64ToFloat32 = require('@stdlib/number/float64/base/to-float32'); +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var rad2degf = require( './../lib' ); diff --git a/base/special/rad2degf/test/test.native.js b/base/special/rad2degf/test/test.native.js index e532ff036..81826ae2e 100644 --- a/base/special/rad2degf/test/test.native.js +++ b/base/special/rad2degf/test/test.native.js @@ -28,7 +28,7 @@ var PI = require( '@stdlib/constants/float32/pi' ); var EPS = require( '@stdlib/constants/float32/eps' ); var isnanf = require( './../../../../base/assert/is-nanf' ); var abs = require( './../../../../base/special/abs' ); -var float64ToFloat32 = require('@stdlib/number/float64/base/to-float32'); +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var tryRequire = require( '@stdlib/utils/try-require' ); diff --git a/base/tools/hermitepoly/test/test.factory.js b/base/tools/hermitepoly/test/test.factory.js index 67beff75c..6bf88794e 100644 --- a/base/tools/hermitepoly/test/test.factory.js +++ b/base/tools/hermitepoly/test/test.factory.js @@ -501,7 +501,7 @@ tape( 'the function returns a function which returns `NaN` when `x` is `NaN`', f hermitepoly = factory( 1 ); y = hermitepoly( NaN ); - t.equal( isnan( y ), true, 'equals NaN'); + t.equal( isnan( y ), true, 'equals NaN' ); t.end(); }); @@ -513,7 +513,7 @@ tape( 'the function returns a function which returns `NaN` when `n` is a negativ hermitepoly = factory( -1 ); y = hermitepoly( 0.0 ); - t.equal( isnan( y ), true, 'equals NaN'); + t.equal( isnan( y ), true, 'equals NaN' ); t.end(); }); @@ -525,7 +525,7 @@ tape( 'the function returns a function which returns `NaN` when `n` is not an in hermitepoly = factory( 1.01 ); y = hermitepoly( 0.0 ); - t.equal( isnan( y ), true, 'equals NaN'); + t.equal( isnan( y ), true, 'equals NaN' ); t.end(); }); diff --git a/base/tools/hermitepoly/test/test.js b/base/tools/hermitepoly/test/test.js index 71576b0a8..55d3d001d 100644 --- a/base/tools/hermitepoly/test/test.js +++ b/base/tools/hermitepoly/test/test.js @@ -445,7 +445,7 @@ tape( 'the function returns `NaN` when `x` is `NaN`', function test( t ) { var y; y = hermitepoly( 0, NaN ); - t.equal( isnan( y ), true, 'equals NaN'); + t.equal( isnan( y ), true, 'equals NaN' ); t.end(); }); @@ -454,7 +454,7 @@ tape( 'the function returns `NaN` when `n` is a negative integer`', function tes var y; y = hermitepoly( -1, 0.0 ); - t.equal( isnan( y ), true, 'equals NaN'); + t.equal( isnan( y ), true, 'equals NaN' ); t.end(); }); @@ -463,7 +463,7 @@ tape( 'the function returns `NaN` when `n` is not an integer`', function test( t var y; y = hermitepoly( 1.01, 0.0 ); - t.equal( isnan( y ), true, 'equals NaN'); + t.equal( isnan( y ), true, 'equals NaN' ); t.end(); }); diff --git a/base/tools/normhermitepoly/test/test.factory.js b/base/tools/normhermitepoly/test/test.factory.js index 526a438d3..3bc0fce0d 100644 --- a/base/tools/normhermitepoly/test/test.factory.js +++ b/base/tools/normhermitepoly/test/test.factory.js @@ -501,7 +501,7 @@ tape( 'the function returns a function which returns `NaN` when `x` is `NaN`', f f = factory( 1 ); y = f( NaN ); - t.strictEqual( isnan( y ), true, 'returns expected value'); + t.strictEqual( isnan( y ), true, 'returns expected value' ); t.end(); }); @@ -513,7 +513,7 @@ tape( 'the function returns a function which returns `NaN` when `n` is a negativ f = factory( -1 ); y = f( 0.0 ); - t.strictEqual( isnan( y ), true, 'returns expected value'); + t.strictEqual( isnan( y ), true, 'returns expected value' ); t.end(); }); @@ -525,7 +525,7 @@ tape( 'the function returns a function which returns `NaN` when `n` is not an in f = factory( 1.01 ); y = f( 0.0 ); - t.strictEqual( isnan( y ), true, 'returns expected value'); + t.strictEqual( isnan( y ), true, 'returns expected value' ); t.end(); }); diff --git a/base/tools/normhermitepoly/test/test.js b/base/tools/normhermitepoly/test/test.js index 83200e12e..b904d052a 100644 --- a/base/tools/normhermitepoly/test/test.js +++ b/base/tools/normhermitepoly/test/test.js @@ -445,7 +445,7 @@ tape( 'the function returns `NaN` when `x` is `NaN`', function test( t ) { var y; y = normhermitepoly( 0, NaN ); - t.strictEqual( isnan( y ), true, 'returns expected value'); + t.strictEqual( isnan( y ), true, 'returns expected value' ); t.end(); }); @@ -454,7 +454,7 @@ tape( 'the function returns `NaN` when `n` is a negative integer`', function tes var y; y = normhermitepoly( -1, 0.0 ); - t.strictEqual( isnan( y ), true, 'returns expected value'); + t.strictEqual( isnan( y ), true, 'returns expected value' ); t.end(); }); @@ -463,7 +463,7 @@ tape( 'the function returns `NaN` when `n` is not an integer`', function test( t var y; y = normhermitepoly( 1.01, 0.0 ); - t.strictEqual( isnan( y ), true, 'returns expected value'); + t.strictEqual( isnan( y ), true, 'returns expected value' ); t.end(); }); diff --git a/base/tools/normhermitepolyf/lib/factory.js b/base/tools/normhermitepolyf/lib/factory.js index 0a0c7cda1..d76e09a92 100644 --- a/base/tools/normhermitepolyf/lib/factory.js +++ b/base/tools/normhermitepolyf/lib/factory.js @@ -73,7 +73,7 @@ function factory( n ) { y3 = y2; y2 = y1; } - return float64ToFloat32( float64ToFloat32( x*y2 ) - y3); + return float64ToFloat32( float64ToFloat32( x*y2 ) - y3 ); } } diff --git a/base/tools/normhermitepolyf/test/test.factory.js b/base/tools/normhermitepolyf/test/test.factory.js index 5860b62f1..3eab966d2 100644 --- a/base/tools/normhermitepolyf/test/test.factory.js +++ b/base/tools/normhermitepolyf/test/test.factory.js @@ -534,7 +534,7 @@ tape( 'the function returns a function which returns `NaN` when `x` is `NaN`', f f = factory( 1 ); y = f( NaN ); - t.strictEqual( isnanf( y ), true, 'returns expected value'); + t.strictEqual( isnanf( y ), true, 'returns expected value' ); t.end(); }); @@ -546,7 +546,7 @@ tape( 'the function returns a function which returns `NaN` when `n` is a negativ f = factory( -1 ); y = f( 0.0 ); - t.strictEqual( isnanf( y ), true, 'returns expected value'); + t.strictEqual( isnanf( y ), true, 'returns expected value' ); t.end(); }); @@ -558,7 +558,7 @@ tape( 'the function returns a function which returns `NaN` when `n` is not an in f = factory( 1.01 ); y = f( 0.0 ); - t.strictEqual( isnanf( y ), true, 'returns expected value'); + t.strictEqual( isnanf( y ), true, 'returns expected value' ); t.end(); }); diff --git a/base/tools/normhermitepolyf/test/test.js b/base/tools/normhermitepolyf/test/test.js index 85e665e9d..c532735e3 100644 --- a/base/tools/normhermitepolyf/test/test.js +++ b/base/tools/normhermitepolyf/test/test.js @@ -478,7 +478,7 @@ tape( 'the function returns `NaN` when `x` is `NaN`', function test( t ) { var y; y = normhermitepolyf( 0, NaN ); - t.strictEqual( isnanf( y ), true, 'returns expected value'); + t.strictEqual( isnanf( y ), true, 'returns expected value' ); t.end(); }); @@ -487,7 +487,7 @@ tape( 'the function returns `NaN` when `n` is a negative integer`', function tes var y; y = normhermitepolyf( -1, 0.0 ); - t.strictEqual( isnanf( y ), true, 'returns expected value'); + t.strictEqual( isnanf( y ), true, 'returns expected value' ); t.end(); }); @@ -496,7 +496,7 @@ tape( 'the function returns `NaN` when `n` is not an integer`', function test( t var y; y = normhermitepolyf( 1.01, 0.0 ); - t.strictEqual( isnanf( y ), true, 'returns expected value'); + t.strictEqual( isnanf( y ), true, 'returns expected value' ); t.end(); }); diff --git a/iter/sequences/tribonacci/examples/index.js b/iter/sequences/tribonacci/examples/index.js index 75a61f73e..c4550c9a8 100644 --- a/iter/sequences/tribonacci/examples/index.js +++ b/iter/sequences/tribonacci/examples/index.js @@ -18,7 +18,7 @@ 'use strict'; -var iterTribonacciSeq = require('./../lib'); +var iterTribonacciSeq = require( './../lib' ); // Create an iterator: var it = iterTribonacciSeq();