Skip to content

Commit 00f9be6

Browse files
committed
Auto-generated commit
1 parent 00dcf8a commit 00f9be6

4 files changed

Lines changed: 115 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-09-13)
7+
## Unreleased (2025-10-01)
88

99
<section class="features">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`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)_
2526
- [`86edcb5`](https://github.com/stdlib-js/stdlib/commit/86edcb559be453cb7d1156076bfc940a37a39af0) - **chore:** add structured package data for packages in `math/base/special` [(#8054)](https://github.com/stdlib-js/stdlib/pull/8054) _(by Gunj Joshi, Athan Reines)_
2627
- [`630ddb7`](https://github.com/stdlib-js/stdlib/commit/630ddb777824b5f6e501fda6dadf4ce41dccb964) - **test:** replace equal with strictEqual _(by Karan Anand)_
2728
- [`a1e230f`](https://github.com/stdlib-js/stdlib/commit/a1e230f29297caa89880e9c194c615a0400fb7bc) - **chore:** clean up cppcheck-suppress comments _(by Karan Anand)_

CONTRIBUTORS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Ahmed Khaled <kahmd1444@gmail.com>
2020
Aksshay Balasubramanian <119944779+Aksshay88@users.noreply.github.com>
2121
Aleksandr <112382387+alextes90@users.noreply.github.com>
2222
Ali Salesi <ali_sal1381@yahoo.com>
23-
AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
23+
Aly Abdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
2424
Aman Bhansali <bhansali.1@iitj.ac.in>
2525
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
2626
Amisha Chhajed <136238836+amishhaa@users.noreply.github.com>
@@ -29,6 +29,7 @@ Anmol Sah <113588714+anmolsah@users.noreply.github.com>
2929
Annamalai Prabu <apfossdev@gmail.com>
3030
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
3131
Anshu Kumar <contact.anshukumar@protonmail.com>
32+
Anshuman Singh <109489361+Anshumancanrock@users.noreply.github.com>
3233
Anudeep Sanapala <anudeep0306@gmail.com>
3334
Arihant Pal <arihant0pal@gmail.com>
3435
Aryan Bhirud <112156883+AryanBhirud@users.noreply.github.com>
@@ -137,6 +138,7 @@ Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
137138
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
138139
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
139140
Ori Miles <97595296+orimiles5@users.noreply.github.com>
141+
Payal Goswami <payalgoswami9711@gmail.com>
140142
Philipp Burckhardt <pburckhardt@outlook.com>
141143
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
142144
Pradyumn Prasad <pradyumnprasad.567@gmail.com>
@@ -178,6 +180,7 @@ Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
178180
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
179181
Satyajeet Chavan <chavansatyajeet2004@gmail.com>
180182
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
183+
Seth-Banker <125103042+Seth-Banker@users.noreply.github.com>
181184
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
182185
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
183186
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
@@ -220,6 +223,7 @@ Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
220223
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
221224
Yugal Kaushik <yugalkaushik14@gmail.com>
222225
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
226+
Zuhair Ahmad <157193652+Zuhair-CS@users.noreply.github.com>
223227
deepak427 <62477872+deepak427@users.noreply.github.com>
224228
devshree-bhati <147095250+devshree-bhati@users.noreply.github.com>
225229
ditsu <170345142+ditsus@users.noreply.github.com>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"@stdlib/utils-library-manifest": "^0.2.2"
4949
},
5050
"devDependencies": {
51+
"@stdlib/assert-is-number": "^0.2.2",
5152
"@stdlib/console-log-each-map": "github:stdlib-js/console-log-each-map#main",
5253
"@stdlib/constants-float64-eps": "^0.2.2",
5354
"@stdlib/math-base-special-abs": "^0.2.2",

test/test.erfcx_y100.js

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
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 erfcxY100 = require( './../lib/erfcx_y100.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 erfcxY100, 'function', 'main export is a function' );
33+
t.end();
34+
});
35+
36+
tape( 'the function evaluates erfcxY100 for values that select polynomial p22', function test( t ) {
37+
var v;
38+
39+
// y100 in [22, 23) selects p22
40+
v = erfcxY100( 22.5 );
41+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
42+
43+
t.end();
44+
});
45+
46+
tape( 'the function evaluates erfcxY100 for values that select polynomial p23', function test( t ) {
47+
var v;
48+
49+
// y100 in [23, 24) selects p23
50+
v = erfcxY100( 23.5 );
51+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
52+
53+
t.end();
54+
});
55+
56+
tape( 'the function evaluates erfcxY100 for values that select polynomial p24', function test( t ) {
57+
var v;
58+
59+
// y100 in [24, 25) selects p24
60+
v = erfcxY100( 24.5 );
61+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
62+
63+
t.end();
64+
});
65+
66+
tape( 'the function evaluates erfcxY100 for values that select polynomial p25', function test( t ) {
67+
var v;
68+
69+
// y100 in [25, 26) selects p25
70+
v = erfcxY100( 25.5 );
71+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
72+
73+
t.end();
74+
});
75+
76+
tape( 'the function evaluates erfcxY100 for values that select polynomial p26', function test( t ) {
77+
var v;
78+
79+
// y100 in [26, 27) selects p26
80+
v = erfcxY100( 26.5 );
81+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
82+
83+
t.end();
84+
});
85+
86+
tape( 'the function evaluates erfcxY100 for values that select polynomial p27', function test( t ) {
87+
var v;
88+
89+
// y100 in [27, 28) selects p27
90+
v = erfcxY100( 27.5 );
91+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
92+
93+
t.end();
94+
});
95+
96+
tape( 'the function evaluates erfcxY100 for all polynomial ranges', function test( t ) {
97+
var i;
98+
var v;
99+
100+
// Test all 101 polynomials (p0 through p100) by testing one value in each range
101+
for ( i = 0; i <= 100; i++ ) {
102+
v = erfcxY100( i + 0.5 );
103+
t.strictEqual( isNumber( v ), true, 'returns a number for y100=' + (i + 0.5) );
104+
}
105+
106+
t.end();
107+
});

0 commit comments

Comments
 (0)