Skip to content

Commit 8cb6641

Browse files
committed
Auto-generated commit
1 parent 00c432d commit 8cb6641

8 files changed

Lines changed: 46 additions & 37 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-10)
7+
## Unreleased (2025-04-11)
88

99
<section class="packages">
1010

@@ -9703,6 +9703,7 @@ A total of 29 people contributed to this release. Thank you to the following con
97039703

97049704
<details>
97059705

9706+
- [`3c14a0f`](https://github.com/stdlib-js/stdlib/commit/3c14a0ff86030c922414336e82cb027deb18d709) - **docs:** replace manual `for` loop in examples [(#6643)](https://github.com/stdlib-js/stdlib/pull/6643) _(by Harsh)_
97069707
- [`a03db66`](https://github.com/stdlib-js/stdlib/commit/a03db667d2c00aeb97920126637fd792e5784de4) - **bench:** fix random value generation _(by Athan Reines)_
97079708
- [`48f3de7`](https://github.com/stdlib-js/stdlib/commit/48f3de7b465186d4ed11e85e22c0668ac9dd827b) - **docs:** replace manual `for` loop in examples [(#6622)](https://github.com/stdlib-js/stdlib/pull/6622) _(by Harsh, Athan Reines)_
97089709
- [`5087e64`](https://github.com/stdlib-js/stdlib/commit/5087e644a4ad2a77078326a1272a2197bf3f5649) - **docs:** replace manual `for` loop in examples [(#6621)](https://github.com/stdlib-js/stdlib/pull/6621) _(by Harsh)_

CONTRIBUTORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
8787
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
8888
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
8989
MANI <77221000+Eternity0207@users.noreply.github.com>
90+
Mahfuza Humayra Mohona <mhmohona@gmail.com>
9091
Manik Sharma <maniksharma.rke@gmail.com>
9192
Manvith M <148960168+manvith2003@users.noreply.github.com>
9293
Marcus Fantham <mfantham@users.noreply.github.com>
@@ -119,6 +120,7 @@ Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
119120
PrathamBhamare <164445568+PrathamBhamare@users.noreply.github.com>
120121
Pratik Singh <97464067+Pratik772846@users.noreply.github.com>
121122
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
123+
Pravesh Kunwar <praveshkunwar04@gmail.com>
122124
Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
123125
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
124126
Pulkit Gupta <65711278+pulkitgupta2@users.noreply.github.com>

base/special/tan/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,17 @@ v = tan( NaN );
8080
<!-- eslint no-undef: "error" -->
8181

8282
```javascript
83-
var linspace = require( '@stdlib/array/base/linspace' );
83+
var uniform = require( '@stdlib/random/array/uniform' );
84+
var logEachMap = require( '@stdlib/console/log-each-map' );
8485
var PI = require( '@stdlib/constants/float64/pi' );
8586
var tan = require( '@stdlib/math/base/special/tan' );
8687

87-
var x = linspace( -PI/2.0, PI/2.0, 100 );
88+
var opts = {
89+
'dtype': 'float64'
90+
};
91+
var x = uniform( 100, -PI/2.0, PI/2.0, opts );
8892

89-
var i;
90-
for ( i = 0; i < x.length; i++ ) {
91-
console.log( tan( x[ i ] ) );
92-
}
93+
logEachMap( 'tan(%0.4f) = %0.4f', x, tan );
9394
```
9495

9596
</section>

base/special/tan/examples/index.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@
1818

1919
'use strict';
2020

21-
var linspace = require( '@stdlib/array/base/linspace' );
21+
var uniform = require( '@stdlib/random/array/uniform' );
22+
var logEachMap = require( '@stdlib/console/log-each-map' );
2223
var PI = require( '@stdlib/constants/float64/pi' );
2324
var tan = require( './../lib' );
2425

25-
var x = linspace( -PI/2.0, PI/2.0, 100 );
26+
var opts = {
27+
'dtype': 'float64'
28+
};
29+
var x = uniform( 100, -PI/2.0, PI/2.0, opts );
2630

27-
var i;
28-
for ( i = 0; i < x.length; i++ ) {
29-
console.log( 'tan(%d) = %d', x[ i ], tan( x[ i ] ) );
30-
}
31+
logEachMap( 'tan(%0.4f) = %0.4f', x, tan );

base/special/tand/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,16 @@ v = tand( NaN );
6363
<!-- eslint no-undef: "error" -->
6464

6565
```javascript
66-
var linspace = require( '@stdlib/array/base/linspace' );
66+
var uniform = require( '@stdlib/random/array/uniform' );
67+
var logEachMap = require( '@stdlib/console/log-each-map' );
6768
var tand = require( '@stdlib/math/base/special/tand' );
6869

69-
var x = linspace( -180, 180, 100 );
70+
var opts = {
71+
'dtype': 'float64'
72+
};
73+
var x = uniform( 100, -180.0, 180.0, opts );
7074

71-
var i;
72-
for ( i = 0; i < x.length; i++ ) {
73-
console.log( tand( x[ i ] ) );
74-
}
75+
logEachMap( 'tand(%0.4f) = %0.4f', x, tand );
7576
```
7677

7778
</section>

base/special/tand/examples/index.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818

1919
'use strict';
2020

21-
var linspace = require( '@stdlib/array/base/linspace' );
21+
var uniform = require( '@stdlib/random/array/uniform' );
22+
var logEachMap = require( '@stdlib/console/log-each-map' );
2223
var tand = require( './../lib' );
2324

24-
var x = linspace( -180, 180, 100 );
25+
var opts = {
26+
'dtype': 'float64'
27+
};
28+
var x = uniform( 100, -180.0, 180.0, opts );
2529

26-
var i;
27-
for ( i = 0; i < x.length; i++ ) {
28-
console.log( 'tand(%d) = %d', x[ i ], tand( x[ i ] ) );
29-
}
30+
logEachMap( 'tand(%0.4f) = %0.4f', x, tand );

base/special/tanh/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,16 @@ v = tanh( NaN );
6262
<!-- eslint no-undef: "error" -->
6363

6464
```javascript
65-
var linspace = require( '@stdlib/array/base/linspace' );
65+
var uniform = require( '@stdlib/random/array/uniform' );
66+
var logEachMap = require( '@stdlib/console/log-each-map' );
6667
var tanh = require( '@stdlib/math/base/special/tanh' );
6768

68-
var x = linspace( -4.0, 4.0, 100 );
69+
var opts = {
70+
'dtype': 'float64'
71+
};
72+
var x = uniform( 100, -4.0, 4.0, opts );
6973

70-
var i;
71-
for ( i = 0; i < x.length; i++ ) {
72-
console.log( tanh( x[ i ] ) );
73-
}
74+
logEachMap( 'tanh(%0.4f) = %0.4f', x, tanh );
7475
```
7576

7677
</section>

base/special/tanh/examples/index.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818

1919
'use strict';
2020

21-
var linspace = require( '@stdlib/array/base/linspace' );
21+
var uniform = require( '@stdlib/random/array/uniform' );
22+
var logEachMap = require( '@stdlib/console/log-each-map' );
2223
var tanh = require( './../lib' );
2324

24-
var x = linspace( -4.0, 4.0, 100 );
25+
var opts = {
26+
'dtype': 'float64'
27+
};
28+
var x = uniform( 100, -4.0, 4.0, opts );
2529

26-
var i;
27-
for ( i = 0; i < x.length; i++ ) {
28-
console.log( 'tanh(%d) = %d', x[ i ], tanh( x[ i ] ) );
29-
}
30+
logEachMap( 'tanh(%0.4f) = %0.4f', x, tanh );

0 commit comments

Comments
 (0)