Skip to content

Commit 1a28196

Browse files
committed
Auto-generated commit
1 parent a4d02bc commit 1a28196

9 files changed

Lines changed: 60 additions & 38 deletions

File tree

CHANGELOG.md

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

7-
## Unreleased (2025-04-11)
7+
## Unreleased (2025-07-22)
88

99
<section class="commits">
1010

1111
### Commits
1212

1313
<details>
1414

15+
- [`5e6e13b`](https://github.com/stdlib-js/stdlib/commit/5e6e13ba6193f5c392c24c247c94fbf7d82c647f) - **bench:** use `random_uniform` _(by Karan Anand)_
16+
- [`86f58fc`](https://github.com/stdlib-js/stdlib/commit/86f58fc94653e5d7bfef5ec5224cac73814d6738) - **refactor:** update C examples for consistency _(by Karan Anand)_
17+
- [`4e65259`](https://github.com/stdlib-js/stdlib/commit/4e65259090fc4e595ca9d5c6fadac83de3904d8f) - **test:** update test messages and use `ulpdiff` for comparison _(by Karan Anand)_
18+
- [`0832f27`](https://github.com/stdlib-js/stdlib/commit/0832f272cb969b3ce37e9668a336fb70248bae4a) - **docs:** update notes section _(by Karan Anand)_
1519
- [`d069841`](https://github.com/stdlib-js/stdlib/commit/d0698415fd26eb45c1cab1e1be0e4551fdae5656) - **docs:** replace manual `for` loop in examples [(#6641)](https://github.com/stdlib-js/stdlib/pull/6641) _(by Harsh)_
1620
- [`630ddb7`](https://github.com/stdlib-js/stdlib/commit/630ddb777824b5f6e501fda6dadf4ce41dccb964) - **test:** replace equal with strictEqual _(by Karan Anand)_
1721
- [`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)_

CONTRIBUTORS

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@ Ali Salesi <[email protected]>
2121
AlyAbdelmoneim <[email protected]>
2222
Aman Bhansali <[email protected]>
2323
AmanBhadkariya <[email protected]>
24+
Amisha Chhajed <[email protected]>
2425
Amit Jimiwal <[email protected]>
26+
Anmol Sah <[email protected]>
27+
Annamalai Prabu <[email protected]>
2528
Anshu Kumar <[email protected]>
2629
Anshu Kumar <[email protected]>
2730
Anudeep Sanapala <[email protected]>
31+
Arihant Pal <[email protected]>
32+
Aryan Bhirud <[email protected]>
2833
Athan Reines <[email protected]>
34+
Atharva Patil <[email protected]>
2935
3036
Bhavishy Agrawal <[email protected]>
3137
Brendan Graetz <[email protected]>
@@ -34,10 +40,13 @@ Bryan Elee <[email protected]>
3440
Chinmay Joshi <[email protected]>
3541
Christopher Dambamuromo <[email protected]>
3642
43+
Daniel Hernandez Gomez <[email protected]>
3744
Daniel Killenberger <[email protected]>
3845
Daniel Yu <[email protected]>
3946
Debashis Maharana <[email protected]>
4047
Deep Trivedi <[email protected]>
48+
Deepak Singh <[email protected]>
49+
Deepak Singh <[email protected]>
4150
Desh Deepak Kant <[email protected]>
4251
4352
Dhanyabad behera <[email protected]>
@@ -51,15 +60,21 @@ Dorrin Sotoudeh <[email protected]>
5160
EuniceSim142 <[email protected]>
5261
Frank Kovacs <[email protected]>
5362
GK Bishnoi <[email protected]>
63+
GURU PRASAD SHARMA <[email protected]>
5464
65+
Gautam Kaushik <[email protected]>
5566
Gautam sharma <[email protected]>
67+
68+
Girish Garg <[email protected]>
5669
Golden Kumar <[email protected]>
5770
Gunj Joshi <[email protected]>
5871
Gururaj Gurram <[email protected]>
72+
Harishchandra Reddy <[email protected]>
5973
Haroon Rasheed <[email protected]>
60-
Harsh <[email protected].com>
74+
Harsh <harshyadav6078@gmail.com>
6175
6276
Harshita Kalani <[email protected]>
77+
Hemang Choudhary <[email protected]>
6378
Hemant M Mehta <[email protected]>
6479
Hridyanshu <[email protected]>
6580
Jaimin Godhani <[email protected]>
@@ -77,6 +92,7 @@ Joris Labie <[email protected]>
7792
Justin Dennison <[email protected]>
7893
Justyn Shelby <[email protected]>
7994
Karan Anand <[email protected]>
95+
Karan Vasudevamurthy <[email protected]>
8096
Karan Yadav <[email protected]>
8197
Karthik Prakash <[email protected]>
8298
Kaushikgtm <[email protected]>
@@ -85,6 +101,8 @@ Kohantika Nath <[email protected]>
85101
Krishnam Agarwal <[email protected]>
86102
Krishnendu Das <[email protected]>
87103
Kshitij-Dale <[email protected]>
104+
Lalit Narayan Yadav <[email protected]>
105+
Lokesh Ranjan <[email protected]>
88106
Lovelin Dhoni J B <[email protected]>
89107
90108
Mahfuza Humayra Mohona <[email protected]>
@@ -105,13 +123,15 @@ Naveen Kumar <[email protected]>
105123
Neeraj Pathak <[email protected]>
106124
NirvedMishra <[email protected]>
107125
Nishant Shinde <[email protected]>
126+
Nishant singh <[email protected]>
108127
Nishchay Rajput <[email protected]>
109128
Nithin Katta <[email protected]>
110129
Nourhan Hasan <[email protected]>
111130
Ognjen Jevremović <[email protected]>
112131
Oneday12323 <[email protected]>
113132
Ori Miles <[email protected]>
114133
Philipp Burckhardt <[email protected]>
134+
Pierre Forstmann <[email protected]>
115135
Prajjwal Bajpai <[email protected]>
116136
Prajwal Kulkarni <[email protected]>
117137
Pranav Goswami <[email protected]>
@@ -141,16 +161,19 @@ Ryan Seal <[email protected]>
141161
Rylan Yang <[email protected]>
142162
SAHIL KUMAR <[email protected]>
143163
SHIVAM YADAV <[email protected]>
164+
Sachin Raj <[email protected]>
144165
Sahil Goyal <[email protected]>
145166
Sai Avinash <[email protected]>
146167
Sai Srikar Dumpeti <[email protected]>
147168
Sanchay Ketan Sinha <[email protected]>
148169
Sarthak Paandey <[email protected]>
170+
Satyajeet Chavan <[email protected]>
149171
Saurabh Singh <[email protected]>
150172
Seyyed Parsa Neshaei <[email protected]>
151173
Shabareesh Shetty <[email protected]>
152174
Shashank Shekhar Singh <[email protected]>
153175
Shivam Ahir <[email protected]>
176+
154177
Shraddheya Shendre <[email protected]>
155178
Shubh Mehta <[email protected]>
156179
Shubham Mishra <[email protected]>
@@ -161,14 +184,19 @@ Spandan Barve <[email protected]>
161184
Stephannie Jiménez Gacha <[email protected]>
162185
Suhaib Ilahi <[email protected]>
163186
Suraj Kumar <[email protected]>
187+
Swapnil Hajare <[email protected]>
164188
Tanishq Ahuja <[email protected]>
165189
Tirtadwipa Manunggal <[email protected]>
166190
Tudor Pagu <[email protected]>
167191
Tufailahmed Bargir <[email protected]>
192+
Tushar Bhardwaj <[email protected]>
193+
Uday Kakade <[email protected]>
194+
Ujjwal Kirti <[email protected]>
168195
Utkarsh <http://[email protected]>
169196
Utkarsh Raj <[email protected]>
170197
UtkershBasnet <[email protected]>
171198
Vaibhav Patel <[email protected]>
199+
Vara Rahul Rajana <[email protected]>
172200
Varad Gupta <[email protected]>
173201
Vinit Pandit <[email protected]>
174202
Vivek Maurya <[email protected]>
@@ -177,12 +205,17 @@ Yaswanth Kosuru <[email protected]>
177205
Yernar Yergaziyev <[email protected]>
178206
Yugal Kaushik <[email protected]>
179207
Yuvi Mittal <[email protected]>
208+
deepak427 <[email protected]>
209+
devshree-bhati <[email protected]>
180210
181211
ekambains <[email protected]>
182212
fadiothman22 <[email protected]>
213+
iraandrushko <[email protected]>
214+
183215
lohithganni <[email protected]>
184216
olenkabilonizhka <[email protected]>
185217
pranav-1720 <[email protected]>
186218
rahulrangers <[email protected]>
187219
188220
221+

benchmark/c/native/benchmark.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,15 @@ static double tic( void ) {
7575
}
7676

7777
/**
78-
* Generates a random number on the interval [0,1).
78+
* Generates a random number on the interval [min,max).
7979
*
80-
* @return random number
80+
* @param min minimum value (inclusive)
81+
* @param max maximum value (exclusive)
82+
* @return random number
8183
*/
82-
static double rand_double( void ) {
83-
int r = rand();
84-
return (double)r / ( (double)RAND_MAX + 1.0 );
84+
static double random_uniform( const double min, const double max ) {
85+
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
86+
return min + ( v*(max-min) );
8587
}
8688

8789
/**
@@ -97,7 +99,7 @@ static double benchmark( void ) {
9799
int i;
98100

99101
for ( i = 0; i < 100; i++ ) {
100-
x[ i ] = ( 1.0e7 * rand_double() ) - 5.0e6;
102+
x[ i ] = random_uniform( -5.0e6, 5.0e6 );
101103
}
102104

103105
t = tic();

dist/index.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ int main( void ) {
2626
int i;
2727
for ( i = 0; i < 5; i++ ) {
2828
y = stdlib_base_sinpi( x[ i ] );
29-
printf( "sinpi(%lf) = %lf\n", x[ i ], y );
29+
printf( "sin( π * %lf ) = %lf\n", x[ i ], y );
3030
}
3131
}

lib/main.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ var PI = require( '@stdlib/constants-float64-pi' );
3636
*
3737
* ## Notes
3838
*
39-
* - `sin(-x) = -sin(x)`
40-
* - `sin(+n) = +0`, where `n` is a positive integer
41-
* - `sin(-n) = -sin(+n) = -0`, where `n` is a positive integer
42-
* - `cos(-x) = cos(x)`
39+
* - The function computes `sin(πx)` more accurately than the obvious approach, especially for large `x`.
4340
*
4441
* @param {number} x - input value
4542
* @returns {number} function value

0 commit comments

Comments
 (0)