Skip to content

Commit 0274a32

Browse files
committed
Auto-generated commit
1 parent aa00ffb commit 0274a32

File tree

13 files changed

+682
-0
lines changed

13 files changed

+682
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,11 @@ A total of 66 issues were closed in this release:
685685

686686
<details>
687687

688+
- [`0a65e10`](https://github.com/stdlib-js/stdlib/commit/0a65e10b6161874c950ebc20224a394c59398afc) - **test:** add tests to achieve full coverage in `digamma` _(by Philipp Burckhardt)_
689+
- [`457674e`](https://github.com/stdlib-js/stdlib/commit/457674ebfc37c325d9a880ccccbbcac1ce07543b) - **test:** add tests to achieve full coverage in `cospif` _(by Philipp Burckhardt)_
690+
- [`c1cb6ae`](https://github.com/stdlib-js/stdlib/commit/c1cb6ae0965bc8aa432b8eb2dddb03c8e1b42a2f) - **test:** add tests to achieve full coverage in `cbrt` _(by Philipp Burckhardt)_
691+
- [`f275965`](https://github.com/stdlib-js/stdlib/commit/f275965c27882f0dcae4b9caf28e12c7f9b834ad) - **test:** add tests to achieve full coverage in `binomcoeff` _(by Philipp Burckhardt)_
692+
- [`fa34e20`](https://github.com/stdlib-js/stdlib/commit/fa34e200572f401836f6297b4630ddfd4f6fee0d) - **test:** add tests to achieve full coverage in `absgammalnf` _(by Philipp Burckhardt)_
688693
- [`a6755be`](https://github.com/stdlib-js/stdlib/commit/a6755be276fe99a1ec76ed0958373a9bc3995c17) - **test:** add tests to achieve full coverage in `beta` and `betaln` _(by Philipp Burckhardt)_
689694
- [`3c033a4`](https://github.com/stdlib-js/stdlib/commit/3c033a4ba718f4383126edcdf6fc974950d0ead8) - **test:** add tests to achieve full coverage in `erf`, `erfc`, `erfcinv`, `erfcx`, and `erfinv` _(by Philipp Burckhardt)_
690695
- [`f6204a4`](https://github.com/stdlib-js/stdlib/commit/f6204a4fc179ad7f12ecdfa6a472ae56d4f04b9d) - **test:** add tests to achieve full coverage in `acosf` and `asin` _(by Philipp Burckhardt)_

base/special/absgammalnf/test/test.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,24 @@ tape( 'if provided a positive integer, the function returns the natural logarith
145145
t.strictEqual( absgammalnf( 6.0 ), lnf( 120.0 ), 'returns expected value' );
146146
t.end();
147147
});
148+
149+
tape( 'the function returns `+infinity` for negative integers', function test( t ) {
150+
var v;
151+
152+
v = absgammalnf( f32( -1.0 ) );
153+
t.strictEqual( v, PINF, 'returns expected value' );
154+
155+
v = absgammalnf( f32( -2.0 ) );
156+
t.strictEqual( v, PINF, 'returns expected value' );
157+
158+
v = absgammalnf( f32( -3.0 ) );
159+
t.strictEqual( v, PINF, 'returns expected value' );
160+
161+
v = absgammalnf( f32( -4.0 ) );
162+
t.strictEqual( v, PINF, 'returns expected value' );
163+
164+
v = absgammalnf( f32( -5.0 ) );
165+
t.strictEqual( v, PINF, 'returns expected value' );
166+
167+
t.end();
168+
});
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
// MODULES //
22+
23+
var tape = require( 'tape' );
24+
var isNumber = require( '@stdlib/assert/is-number' ).isPrimitive;
25+
var polyval = require( './../lib/polyval_a0.js' );
26+
27+
28+
// TESTS //
29+
30+
tape( 'main export is a function', function test( t ) {
31+
t.ok( true, __filename );
32+
t.strictEqual( typeof polyval, 'function', 'main export is a function' );
33+
t.end();
34+
});
35+
36+
tape( 'the function evaluates a polynomial for x = 0', function test( t ) {
37+
var v = polyval( 0.0 );
38+
t.strictEqual( v, 0.07721566408872604, 'returns expected value' );
39+
t.end();
40+
});
41+
42+
tape( 'the function evaluates a polynomial for positive values', function test( t ) {
43+
var v;
44+
45+
v = polyval( 0.5 );
46+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
47+
48+
v = polyval( 1.0 );
49+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
50+
51+
t.end();
52+
});
53+
54+
tape( 'the function evaluates a polynomial for negative values', function test( t ) {
55+
var v;
56+
57+
v = polyval( -0.5 );
58+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
59+
60+
v = polyval( -1.0 );
61+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
62+
63+
t.end();
64+
});
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
// MODULES //
22+
23+
var tape = require( 'tape' );
24+
var isNumber = require( '@stdlib/assert/is-number' ).isPrimitive;
25+
var polyval = require( './../lib/polyval_a1.js' );
26+
27+
28+
// TESTS //
29+
30+
tape( 'main export is a function', function test( t ) {
31+
t.ok( true, __filename );
32+
t.strictEqual( typeof polyval, 'function', 'main export is a function' );
33+
t.end();
34+
});
35+
36+
tape( 'the function evaluates a polynomial for x = 0', function test( t ) {
37+
var v = polyval( 0.0 );
38+
t.strictEqual( v, 0.3224671185016632, 'returns expected value' );
39+
t.end();
40+
});
41+
42+
tape( 'the function evaluates a polynomial for positive values', function test( t ) {
43+
var v;
44+
45+
v = polyval( 0.5 );
46+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
47+
48+
v = polyval( 1.0 );
49+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
50+
51+
t.end();
52+
});
53+
54+
tape( 'the function evaluates a polynomial for negative values', function test( t ) {
55+
var v;
56+
57+
v = polyval( -0.5 );
58+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
59+
60+
v = polyval( -1.0 );
61+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
62+
63+
t.end();
64+
});
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
// MODULES //
22+
23+
var tape = require( 'tape' );
24+
var isNumber = require( '@stdlib/assert/is-number' ).isPrimitive;
25+
var polyval = require( './../lib/polyval_t2.js' );
26+
27+
28+
// TESTS //
29+
30+
tape( 'main export is a function', function test( t ) {
31+
t.ok( true, __filename );
32+
t.strictEqual( typeof polyval, 'function', 'main export is a function' );
33+
t.end();
34+
});
35+
36+
tape( 'the function evaluates a polynomial for x = 0', function test( t ) {
37+
var v = polyval( 0.0 );
38+
t.strictEqual( v, 0.48383641242980957, 'returns expected value' );
39+
t.end();
40+
});
41+
42+
tape( 'the function evaluates a polynomial for positive values', function test( t ) {
43+
var v;
44+
45+
v = polyval( 0.5 );
46+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
47+
48+
v = polyval( 1.0 );
49+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
50+
51+
t.end();
52+
});
53+
54+
tape( 'the function evaluates a polynomial for negative values', function test( t ) {
55+
var v;
56+
57+
v = polyval( -0.5 );
58+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
59+
60+
v = polyval( -1.0 );
61+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
62+
63+
t.end();
64+
});
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
// MODULES //
22+
23+
var tape = require( 'tape' );
24+
var isNumber = require( '@stdlib/assert/is-number' ).isPrimitive;
25+
var polyval = require( './../lib/polyval_u.js' );
26+
27+
28+
// TESTS //
29+
30+
tape( 'main export is a function', function test( t ) {
31+
t.ok( true, __filename );
32+
t.strictEqual( typeof polyval, 'function', 'main export is a function' );
33+
t.end();
34+
});
35+
36+
tape( 'the function evaluates a polynomial for x = 0', function test( t ) {
37+
var v = polyval( 0.0 );
38+
t.strictEqual( v, -0.07721566408872604, 'returns expected value' );
39+
t.end();
40+
});
41+
42+
tape( 'the function evaluates a polynomial for positive values', function test( t ) {
43+
var v;
44+
45+
v = polyval( 0.5 );
46+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
47+
48+
v = polyval( 1.0 );
49+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
50+
51+
t.end();
52+
});
53+
54+
tape( 'the function evaluates a polynomial for negative values', function test( t ) {
55+
var v;
56+
57+
v = polyval( -0.5 );
58+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
59+
60+
v = polyval( -1.0 );
61+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
62+
63+
t.end();
64+
});
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
// MODULES //
22+
23+
var tape = require( 'tape' );
24+
var isNumber = require( '@stdlib/assert/is-number' ).isPrimitive;
25+
var polyval = require( './../lib/polyval_v.js' );
26+
27+
28+
// TESTS //
29+
30+
tape( 'main export is a function', function test( t ) {
31+
t.ok( true, __filename );
32+
t.strictEqual( typeof polyval, 'function', 'main export is a function' );
33+
t.end();
34+
});
35+
36+
tape( 'the function evaluates a polynomial for x = 0', function test( t ) {
37+
var v = polyval( 0.0 );
38+
t.strictEqual( v, 1.1095842123031616, 'returns expected value' );
39+
t.end();
40+
});
41+
42+
tape( 'the function evaluates a polynomial for positive values', function test( t ) {
43+
var v;
44+
45+
v = polyval( 0.5 );
46+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
47+
48+
v = polyval( 1.0 );
49+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
50+
51+
t.end();
52+
});
53+
54+
tape( 'the function evaluates a polynomial for negative values', function test( t ) {
55+
var v;
56+
57+
v = polyval( -0.5 );
58+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
59+
60+
v = polyval( -1.0 );
61+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
62+
63+
t.end();
64+
});

0 commit comments

Comments
 (0)