Skip to content

Commit 9aac890

Browse files
committed
Auto-generated commit
1 parent e3c0026 commit 9aac890

3 files changed

Lines changed: 84 additions & 14 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-04-07)
7+
## Unreleased (2025-07-01)
88

99
<section class="reverts">
1010

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

2323
<details>
2424

25+
- [`f9aa653`](https://github.com/stdlib-js/stdlib/commit/f9aa6535cea3c4a56fde6aba6914405fd25c0bff) - **test:** use approximate equality for native addon tests _(by Philipp Burckhardt)_
2526
- [`630ddb7`](https://github.com/stdlib-js/stdlib/commit/630ddb777824b5f6e501fda6dadf4ce41dccb964) - **test:** replace equal with strictEqual _(by Karan Anand)_
2627
- [`a1e230f`](https://github.com/stdlib-js/stdlib/commit/a1e230f29297caa89880e9c194c615a0400fb7bc) - **chore:** clean up cppcheck-suppress comments _(by Karan Anand)_
2728
- [`2e1dd43`](https://github.com/stdlib-js/stdlib/commit/2e1dd438de6a412fcb94d486933a61709fd250ab) - **chore:** replace manual `for` loop in examples [(#6351)](https://github.com/stdlib-js/stdlib/pull/6351) _(by Harsh)_

CONTRIBUTORS

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ Ali Salesi <ali_sal1381@yahoo.com>
2121
AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
2222
Aman Bhansali <bhansali.1@iitj.ac.in>
2323
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
24+
Amisha Chhajed <136238836+amishhaa@users.noreply.github.com>
2425
Amit Jimiwal <amitjimiwal45@gmail.com>
26+
Annamalai Prabu <apfossdev@gmail.com>
2527
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
2628
Anshu Kumar <contact.anshukumar@protonmail.com>
2729
Anudeep Sanapala <anudeep0306@gmail.com>
30+
Aryan Bhirud <112156883+AryanBhirud@users.noreply.github.com>
2831
Athan Reines <kgryte@gmail.com>
2932
Ayaka <73595362+USERSATOSHI@users.noreply.github.com>
3033
Bhavishy Agrawal <90029607+bhavishy2801@users.noreply.github.com>
@@ -34,10 +37,12 @@ Bryan Elee <rxbryn@gmail.com>
3437
Chinmay Joshi <86140365+JawHawk@users.noreply.github.com>
3538
Christopher Dambamuromo <chridam@gmail.com>
3639
Dan Rose <danoftheroses@gmail.com>
40+
Daniel Hernandez Gomez <156333015+dhernandeez13@users.noreply.github.com>
3741
Daniel Killenberger <daniel.killenberger@gmail.com>
3842
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
3943
Debashis Maharana <debashismaharana7854@gmail.com>
4044
Deep Trivedi <128926685+thedeeppp@users.noreply.github.com>
45+
Deepak Singh <78257493+Deepak91168@users.noreply.github.com>
4146
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
4247
Dev Goel <135586571+corsairier@users.noreply.github.com>
4348
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
@@ -51,15 +56,20 @@ Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
5156
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
5257
Frank Kovacs <fran70kk@gmail.com>
5358
GK Bishnoi <gkishan1kyt@gmail.com>
59+
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
5460
Gaurav <gaurav70380@gmail.com>
61+
Gautam Kaushik <162317291+Kaushikgtm@users.noreply.github.com>
5562
Gautam sharma <gautamkrishnasharma1@gmail.com>
63+
Girish Garg <garggirish2020@gmail.com>
5664
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
5765
Gunj Joshi <gunjjoshi8372@gmail.com>
5866
Gururaj Gurram <gururajgurram1512@gmail.com>
67+
Harishchandra Reddy <harish.7000@gmail.com>
5968
Haroon Rasheed <51189276+haroon26@users.noreply.github.com>
60-
Harsh <149176984+hrshya@users.noreply.github.com>
69+
Harsh <harshyadav6078@gmail.com>
6170
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
6271
Harshita Kalani <harshitakalani02@gmail.com>
72+
Hemang Choudhary <coehemang@gmail.com>
6373
Hemant M Mehta <92446645+hemantmm@users.noreply.github.com>
6474
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
6575
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
@@ -77,15 +87,20 @@ Joris Labie <joris.labie1@gmail.com>
7787
Justin Dennison <justin1dennison@gmail.com>
7888
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
7989
Karan Anand <anandkarancompsci@gmail.com>
90+
Karan Vasudevamurthy <karanlvm123@gmail.com>
91+
Karan Yadav <77043443+karanBRAVO@users.noreply.github.com>
8092
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
8193
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
8294
Kavyansh-Bagdi <153486713+Kavyansh-Bagdi@users.noreply.github.com>
8395
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
8496
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
8597
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
8698
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
99+
Lalit Narayan Yadav <162928571+LalitNarayanYadav@users.noreply.github.com>
100+
Lokesh Ranjan <lokesh.ranjan.phe23@itbhu.ac.in>
87101
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
88102
MANI <77221000+Eternity0207@users.noreply.github.com>
103+
Mahfuza Humayra Mohona <mhmohona@gmail.com>
89104
Manik Sharma <maniksharma.rke@gmail.com>
90105
Manvith M <148960168+manvith2003@users.noreply.github.com>
91106
Marcus Fantham <mfantham@users.noreply.github.com>
@@ -103,13 +118,15 @@ Naveen Kumar <stupiddint@gmail.com>
103118
Neeraj Pathak <neerajrpathak710@gmail.com>
104119
NirvedMishra <139633597+NirvedMishra@users.noreply.github.com>
105120
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
121+
Nishant singh <38534128+Nishantsingh11@users.noreply.github.com>
106122
Nishchay Rajput <121144841+NishchayRajput@users.noreply.github.com>
107123
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
108124
Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
109125
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
110126
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
111127
Ori Miles <97595296+orimiles5@users.noreply.github.com>
112128
Philipp Burckhardt <pburckhardt@outlook.com>
129+
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
113130
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
114131
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
115132
Pranav Goswami <pranavchiku11@gmail.com>
@@ -118,6 +135,7 @@ Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
118135
PrathamBhamare <164445568+PrathamBhamare@users.noreply.github.com>
119136
Pratik Singh <97464067+Pratik772846@users.noreply.github.com>
120137
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
138+
Pravesh Kunwar <praveshkunwar04@gmail.com>
121139
Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
122140
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
123141
Pulkit Gupta <65711278+pulkitgupta2@users.noreply.github.com>
@@ -138,6 +156,7 @@ Ryan Seal <splrk@users.noreply.github.com>
138156
Rylan Yang <137365285+rylany27@users.noreply.github.com>
139157
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
140158
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
159+
Sachin Raj <120590207+schnrj@users.noreply.github.com>
141160
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
142161
Sai Avinash <120403424+nasarobot@users.noreply.github.com>
143162
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
@@ -158,14 +177,19 @@ Spandan Barve <contact@marsian.dev>
158177
Stephannie Jiménez Gacha <steff456@hotmail.com>
159178
Suhaib Ilahi <suhaib.elahi87@gmail.com>
160179
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
180+
Swapnil Hajare <69076366+Swapnil-2502@users.noreply.github.com>
161181
Tanishq Ahuja <68651083+TheGEN1U5@users.noreply.github.com>
162182
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
163183
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
164184
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
185+
Tushar Bhardwaj <155543597+TusharBhardwaj441@users.noreply.github.com>
186+
Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
187+
Ujjwal Kirti <64329707+ujjwalkirti@users.noreply.github.com>
165188
Utkarsh <http://utkarsh11105@gmail.com>
166189
Utkarsh Raj <rajutkarsh2505@gmail.com>
167190
UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
168191
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
192+
Vara Rahul Rajana <123227543+rajanarahul93@users.noreply.github.com>
169193
Varad Gupta <varadgupta21@gmail.com>
170194
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
171195
Vivek Maurya <vm8118134@gmail.com>
@@ -174,12 +198,17 @@ Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
174198
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
175199
Yugal Kaushik <yugalkaushik14@gmail.com>
176200
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
201+
deepak427 <62477872+deepak427@users.noreply.github.com>
202+
devshree-bhati <147095250+devshree-bhati@users.noreply.github.com>
177203
ditsu <170345142+ditsus@users.noreply.github.com>
178204
ekambains <bainsinbusiness@gmail.com>
179205
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
206+
iraandrushko <71790513+iraandrushko@users.noreply.github.com>
207+
jsai28 <54253219+jsai28@users.noreply.github.com>
180208
lohithganni <116790357+lohithganni@users.noreply.github.com>
181209
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
182210
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
183211
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
184212
rainn <88160429+AmCodesLame@users.noreply.github.com>
185213
rei2hu <reimu@reimu.ws>
214+
zhanggy <geodaoyu@foxmail.com>

test/test.native.js

Lines changed: 52 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
7878
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
7979
} else {
8080
delta = abs( y - expected[ i ] );
81-
tol = EPS * abs( expected[ i ] );
81+
tol = 2.0 * EPS * abs( expected[ i ] );
8282
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
8383
}
8484
}
@@ -101,7 +101,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
101101
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
102102
} else {
103103
delta = abs( y - expected[ i ] );
104-
tol = EPS * abs( expected[ i ] );
104+
tol = 2.0 * EPS * abs( expected[ i ] );
105105
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
106106
}
107107
}
@@ -124,7 +124,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
124124
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
125125
} else {
126126
delta = abs( y - expected[ i ] );
127-
tol = EPS * abs( expected[ i ] );
127+
tol = 2.0 * EPS * abs( expected[ i ] );
128128
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
129129
}
130130
}
@@ -147,7 +147,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
147147
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
148148
} else {
149149
delta = abs( y - expected[ i ] );
150-
tol = EPS * abs( expected[ i ] );
150+
tol = 2.0 * EPS * abs( expected[ i ] );
151151
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
152152
}
153153
}
@@ -170,7 +170,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
170170
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
171171
} else {
172172
delta = abs( y - expected[ i ] );
173-
tol = EPS * abs( expected[ i ] );
173+
tol = 2.0 * EPS * abs( expected[ i ] );
174174
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
175175
}
176176
}
@@ -193,7 +193,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
193193
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
194194
} else {
195195
delta = abs( y - expected[ i ] );
196-
tol = EPS * abs( expected[ i ] );
196+
tol = 2.0 * EPS * abs( expected[ i ] );
197197
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
198198
}
199199
}
@@ -216,7 +216,7 @@ tape( 'the function evaluates the complementary error function for `x` on the in
216216
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
217217
} else {
218218
delta = abs( y - expected[ i ] );
219-
tol = EPS * abs( expected[ i ] );
219+
tol = 2.0 * EPS * abs( expected[ i ] );
220220
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
221221
}
222222
}
@@ -225,6 +225,8 @@ tape( 'the function evaluates the complementary error function for `x` on the in
225225

226226
tape( 'the function evaluates the complementary error function for `x` on the interval `[0.8,1]`', opts, function test( t ) {
227227
var expected;
228+
var delta;
229+
var tol;
228230
var x;
229231
var y;
230232
var i;
@@ -233,13 +235,21 @@ tape( 'the function evaluates the complementary error function for `x` on the in
233235
x = smallPositive.x;
234236
for ( i = 0; i < x.length; i++ ) {
235237
y = erfc( x[i] );
236-
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
238+
if ( y === expected[i] ) {
239+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
240+
} else {
241+
delta = abs( y - expected[ i ] );
242+
tol = 2.0 * EPS * abs( expected[ i ] );
243+
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
244+
}
237245
}
238246
t.end();
239247
});
240248

241249
tape( 'the function evaluates the complementary error function for `x` on the interval `[-0.8,0.8]`', opts, function test( t ) {
242250
var expected;
251+
var delta;
252+
var tol;
243253
var x;
244254
var y;
245255
var i;
@@ -248,13 +258,21 @@ tape( 'the function evaluates the complementary error function for `x` on the in
248258
x = smaller.x;
249259
for ( i = 0; i < x.length; i++ ) {
250260
y = erfc( x[i] );
251-
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
261+
if ( y === expected[i] ) {
262+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
263+
} else {
264+
delta = abs( y - expected[ i ] );
265+
tol = 2.0 * EPS * abs( expected[ i ] );
266+
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
267+
}
252268
}
253269
t.end();
254270
});
255271

256272
tape( 'the function evaluates the complementary error function for `x` on the interval `[-1e-300,-1e-308]`', opts, function test( t ) {
257273
var expected;
274+
var delta;
275+
var tol;
258276
var x;
259277
var y;
260278
var i;
@@ -263,13 +281,21 @@ tape( 'the function evaluates the complementary error function for `x` on the in
263281
x = tinyNegative.x;
264282
for ( i = 0; i < x.length; i++ ) {
265283
y = erfc( x[i] );
266-
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
284+
if ( y === expected[i] ) {
285+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
286+
} else {
287+
delta = abs( y - expected[ i ] );
288+
tol = 1.0 * EPS * abs( expected[ i ] );
289+
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
290+
}
267291
}
268292
t.end();
269293
});
270294

271295
tape( 'the function evaluates the complementary error function for `x` on the interval `[1e-300,1e-308]`', opts, function test( t ) {
272296
var expected;
297+
var delta;
298+
var tol;
273299
var x;
274300
var y;
275301
var i;
@@ -278,13 +304,21 @@ tape( 'the function evaluates the complementary error function for `x` on the in
278304
x = tinyPositive.x;
279305
for ( i = 0; i < x.length; i++ ) {
280306
y = erfc( x[i] );
281-
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
307+
if ( y === expected[i] ) {
308+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
309+
} else {
310+
delta = abs( y - expected[ i ] );
311+
tol = 1.0 * EPS * abs( expected[ i ] );
312+
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
313+
}
282314
}
283315
t.end();
284316
});
285317

286318
tape( 'the function evaluates the complementary error function for subnormal `x`', opts, function test( t ) {
287319
var expected;
320+
var delta;
321+
var tol;
288322
var x;
289323
var y;
290324
var i;
@@ -293,7 +327,13 @@ tape( 'the function evaluates the complementary error function for subnormal `x`
293327
x = subnormal.x;
294328
for ( i = 0; i < x.length; i++ ) {
295329
y = erfc( x[i] );
296-
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
330+
if ( y === expected[i] ) {
331+
t.strictEqual( y, expected[i], 'x: '+x[i]+', y: '+y+', expected: '+expected[i] );
332+
} else {
333+
delta = abs( y - expected[ i ] );
334+
tol = 1.0 * EPS * abs( expected[ i ] );
335+
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol );
336+
}
297337
}
298338
t.end();
299339
});

0 commit comments

Comments
 (0)