Skip to content

Commit 6a070bc

Browse files
committed
Auto-generated commit
1 parent bcaba12 commit 6a070bc

12 files changed

Lines changed: 53 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9693,6 +9693,8 @@ A total of 29 people contributed to this release. Thank you to the following con
96939693

96949694
<details>
96959695

9696+
- [`0e376f8`](https://github.com/stdlib-js/stdlib/commit/0e376f8bb234692a55dc57773533114a5512cddd) - **test:** add tests for IEEE 754-2019 compliance [(#6570)](https://github.com/stdlib-js/stdlib/pull/6570) _(by Karan Anand)_
9697+
- [`9211c88`](https://github.com/stdlib-js/stdlib/commit/9211c88ad8ecd436a2fb5311eb00ace0ac8d6f9d) - **test:** add tests for IEEE 754-2019 compliance [(#6561)](https://github.com/stdlib-js/stdlib/pull/6561) _(by Karan Anand, stdlib-bot)_
96969698
- [`d9ad02c`](https://github.com/stdlib-js/stdlib/commit/d9ad02ca1c902ca787d9e9135160871379e40829) - **test:** add tests for IEEE 754-2019 compliance [(#6557)](https://github.com/stdlib-js/stdlib/pull/6557) _(by Karan Anand)_
96979699
- [`5c0b04d`](https://github.com/stdlib-js/stdlib/commit/5c0b04d1e4d0e03a7364541658bada5f20f8e50c) - **chore:** address commit comments for commit bb378ff (issue #6499) [(#6565)](https://github.com/stdlib-js/stdlib/pull/6565) _(by PrathamBhamare)_
96989700
- [`d0c1c2b`](https://github.com/stdlib-js/stdlib/commit/d0c1c2b9a307016b894d7fa3d500c98558bbe197) - **test:** add tests for IEEE 754-2019 compliance [(#6558)](https://github.com/stdlib-js/stdlib/pull/6558) _(by Karan Anand)_

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ For more information on the project, filing bug reports and feature requests, an
139139

140140
---
141141

142+
## License
143+
144+
See [LICENSE][stdlib-license].
145+
146+
142147
## Copyright
143148

144149
Copyright &copy; 2016-2025. The Stdlib [Authors][stdlib-authors].
@@ -185,6 +190,8 @@ Copyright &copy; 2016-2025. The Stdlib [Authors][stdlib-authors].
185190
[esm-readme]: https://github.com/stdlib-js/math/blob/esm/README.md
186191
[branches-url]: https://github.com/stdlib-js/math/blob/main/branches.md
187192

193+
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/math/main/LICENSE
194+
188195
<!-- <toc-links> -->
189196

190197
[@stdlib/math/array]: https://github.com/stdlib-js/math/tree/main/array

base/special/acos/test/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var isnan = require( './../../../../base/assert/is-nan' );
2525
var randu = require( '@stdlib/random/base/randu' );
2626
var abs = require( './../../../../base/special/abs' );
2727
var EPS = require( '@stdlib/constants/float64/eps' );
28+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
2829
var acos = require( './../lib' );
2930

3031

@@ -140,3 +141,8 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', functi
140141
}
141142
t.end();
142143
});
144+
145+
tape( 'the function returns `0` if provided `1`', function test( t ) {
146+
t.equal( isPositiveZero( acos( 1.0 ) ), true, 'returns expected value' );
147+
t.end();
148+
});

base/special/acos/test/test.native.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var randu = require( '@stdlib/random/base/randu' );
2727
var tryRequire = require( '@stdlib/utils/try-require' );
2828
var abs = require( './../../../../base/special/abs' );
2929
var EPS = require( '@stdlib/constants/float64/eps' );
30+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
3031

3132

3233
// FIXTURES //
@@ -149,3 +150,8 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', opts,
149150
}
150151
t.end();
151152
});
153+
154+
tape( 'the function returns `0` if provided `1`', opts, function test( t ) {
155+
t.equal( isPositiveZero( acos( 1.0 ) ), true, 'returns expected value' );
156+
t.end();
157+
});

base/special/acosh/test/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var randu = require( '@stdlib/random/base/randu' );
2626
var EPS = require( '@stdlib/constants/float64/eps' );
2727
var PINF = require( '@stdlib/constants/float64/pinf' );
2828
var abs = require( './../../../../base/special/abs' );
29+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
2930
var acosh = require( './../lib' );
3031

3132

@@ -158,6 +159,11 @@ tape( 'the function returns `NaN` if provided value less than `1`', function tes
158159
t.end();
159160
});
160161

162+
tape( 'the function returns `0` if provided `1`', function test( t ) {
163+
t.equal( isPositiveZero( acosh( 1.0 ) ), true, 'returns expected value' );
164+
t.end();
165+
});
166+
161167
tape( 'the function returns `+infinity` if provided `+infinity`', function test( t ) {
162168
var v = acosh( PINF );
163169
t.equal( v, PINF, 'returns expected value' );

base/special/acosh/test/test.native.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var randu = require( '@stdlib/random/base/randu' );
2727
var PINF = require( '@stdlib/constants/float64/pinf' );
2828
var EPS = require( '@stdlib/constants/float64/eps' );
2929
var abs = require( './../../../../base/special/abs' );
30+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
3031
var tryRequire = require( '@stdlib/utils/try-require' );
3132

3233

@@ -167,6 +168,11 @@ tape( 'the function returns `NaN` if provided value less than `1`', opts, functi
167168
t.end();
168169
});
169170

171+
tape( 'the function returns `0` if provided `1`', opts, function test( t ) {
172+
t.equal( isPositiveZero( acosh( 1.0 ) ), true, 'returns expected value' );
173+
t.end();
174+
});
175+
170176
tape( 'the function returns `+infinity` if provided `+infinity`', opts, function test( t ) {
171177
var v = acosh( PINF );
172178
t.equal( v, PINF, 'returns expected value' );

base/special/exp/test/test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var abs = require( './../../../../base/special/abs' );
2626
var PINF = require( '@stdlib/constants/float64/pinf' );
2727
var NINF = require( '@stdlib/constants/float64/ninf' );
2828
var EPS = require( '@stdlib/constants/float64/eps' );
29+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
2930
var exp = require( './../lib' );
3031

3132

@@ -148,19 +149,19 @@ tape( 'the function accurately computes the natural exponential function for ver
148149

149150
tape( 'the function returns `0` if provided a `-infinity`', function test( t ) {
150151
var val = exp( NINF );
151-
t.equal( val, 0.0, 'returns 0' );
152+
t.equal( isPositiveZero( val ), true, 'returns expected value' );
152153
t.end();
153154
});
154155

155156
tape( 'the function returns `+infinity` if provided a `+infinity`', function test( t ) {
156157
var val = exp( PINF );
157-
t.equal( val, PINF, 'returns +infinity' );
158+
t.equal( val, PINF, 'returns expected value' );
158159
t.end();
159160
});
160161

161162
tape( 'the function returns `NaN` if provided a `NaN`', function test( t ) {
162163
var val = exp( NaN );
163-
t.equal( isnan( val ), true, 'returns NaN' );
164+
t.equal( isnan( val ), true, 'returns expected value' );
164165
t.end();
165166
});
166167

base/special/exp/test/test.native.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var isnan = require( './../../../../base/assert/is-nan' );
2626
var abs = require( './../../../../base/special/abs' );
2727
var PINF = require( '@stdlib/constants/float64/pinf' );
2828
var NINF = require( '@stdlib/constants/float64/ninf' );
29+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
2930
var tryRequire = require( '@stdlib/utils/try-require' );
3031
var EPS = require( '@stdlib/constants/float64/eps' );
3132

@@ -157,19 +158,19 @@ tape( 'the function accurately computes the natural exponential function for ver
157158

158159
tape( 'the function returns `0` if provided a `-infinity`', opts, function test( t ) {
159160
var val = exp( NINF );
160-
t.equal( val, 0.0, 'returns 0' );
161+
t.equal( isPositiveZero( val ), true, 'returns expected value' );
161162
t.end();
162163
});
163164

164165
tape( 'the function returns `+infinity` if provided a `+infinity`', opts, function test( t ) {
165166
var val = exp( PINF );
166-
t.equal( val, PINF, 'returns +infinity' );
167+
t.equal( val, PINF, 'returns expected value' );
167168
t.end();
168169
});
169170

170171
tape( 'the function returns `NaN` if provided a `NaN`', opts, function test( t ) {
171172
var val = exp( NaN );
172-
t.equal( isnan( val ), true, 'returns NaN' );
173+
t.equal( isnan( val ), true, 'returns expected value' );
173174
t.end();
174175
});
175176

base/special/exp10/test/test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var abs = require( './../../../../base/special/abs' );
2626
var PINF = require( '@stdlib/constants/float64/pinf' );
2727
var NINF = require( '@stdlib/constants/float64/ninf' );
2828
var EPS = require( '@stdlib/constants/float64/eps' );
29+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
2930
var exp10 = require( './../lib' );
3031

3132

@@ -161,7 +162,8 @@ tape( 'the function returns `0.0` for negative large `x`', function test( t ) {
161162
});
162163

163164
tape( 'the function returns `0.0` if provided `-infinity`', function test( t ) {
164-
t.equal( exp10( NINF ), 0.0, 'equals 0' );
165+
var val = exp10( NINF );
166+
t.equal( isPositiveZero( val ), true, 'returns expected value' );
165167
t.end();
166168
});
167169

base/special/exp10/test/test.native.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var abs = require( './../../../../base/special/abs' );
2727
var PINF = require( '@stdlib/constants/float64/pinf' );
2828
var NINF = require( '@stdlib/constants/float64/ninf' );
2929
var EPS = require( '@stdlib/constants/float64/eps' );
30+
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
3031
var tryRequire = require( '@stdlib/utils/try-require' );
3132

3233

@@ -170,7 +171,8 @@ tape( 'the function returns `0.0` for negative large `x`', opts, function test(
170171
});
171172

172173
tape( 'the function returns `0.0` if provided `-infinity`', opts, function test( t ) {
173-
t.equal( exp10( NINF ), 0.0, 'equals 0' );
174+
var val = exp10( NINF );
175+
t.equal( isPositiveZero( val ), true, 'returns expected value' );
174176
t.end();
175177
});
176178

0 commit comments

Comments
 (0)