Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jul 7, 2024
1 parent 596a8bc commit 120a617
Show file tree
Hide file tree
Showing 54 changed files with 102 additions and 100 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4900,6 +4900,8 @@ A total of 29 people contributed to this release. Thank you to the following con

<details>

- [`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)_
Expand Down
4 changes: 2 additions & 2 deletions base/special/acosd/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand Down
4 changes: 2 additions & 2 deletions base/special/acotd/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}


Expand Down
2 changes: 1 addition & 1 deletion base/special/acscdf/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );


Expand Down
2 changes: 1 addition & 1 deletion base/special/acscdf/test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );


Expand Down
18 changes: 9 additions & 9 deletions base/special/asec/benchmark/benchmark.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions base/special/asecd/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );


Expand Down
4 changes: 2 additions & 2 deletions base/special/asecd/test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );


Expand Down
2 changes: 1 addition & 1 deletion base/special/asecf/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );


Expand Down
2 changes: 1 addition & 1 deletion base/special/asecf/test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );


Expand Down
2 changes: 1 addition & 1 deletion base/special/asindf/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );


Expand Down
2 changes: 1 addition & 1 deletion base/special/asindf/test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );


Expand Down
2 changes: 1 addition & 1 deletion base/special/bessely1/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
2 changes: 1 addition & 1 deletion base/special/beta/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion base/special/boxcox/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/boxcox/test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/boxcox1p/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/boxcox1p/test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/boxcox1pinv/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/boxcox1pinv/test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/boxcoxinv/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/boxcoxinv/test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion base/special/cexp/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down
2 changes: 1 addition & 1 deletion base/special/cinv/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function cinv( z ) {
}
re *= s;
im *= s;
return new Complex128( re, im);
return new Complex128( re, im );
}


Expand Down
6 changes: 3 additions & 3 deletions base/special/cosm1/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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+'.' );
}
}

Expand All @@ -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 );
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion base/special/csc/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

// MODULES //

var main = require('./main.js');
var main = require( './main.js' );


// EXPORTS //
Expand Down
4 changes: 2 additions & 2 deletions base/special/csc/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// MODULES //

var sin = require('./../../../../base/special/sin');
var sin = require( './../../../../base/special/sin' );


// MAIN //
Expand Down Expand Up @@ -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 );
}


Expand Down
4 changes: 2 additions & 2 deletions base/special/csc/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down
2 changes: 1 addition & 1 deletion base/special/exp/lib/expmulti.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down
12 changes: 6 additions & 6 deletions base/special/expm1rel/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
12 changes: 6 additions & 6 deletions base/special/expm1rel/test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
2 changes: 1 addition & 1 deletion base/special/fast/pow-int/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Loading

0 comments on commit 120a617

Please sign in to comment.