Skip to content

Commit 8bd1604

Browse files
committed
docs: update example in math/iter/special/sinpi to use iter/uniform
Migrate the example pseudorandom source from `@stdlib/random/iter/randu` to `@stdlib/random/iter/uniform( 0.0, 2.0, ... )`, sampling across one full period of `sin(πx)` rather than `[0, 1)`. The `uniform`-based pattern is used by 88 of 97 (90.7%) sibling packages in `math/iter/special`; the `(0.0, 2.0)` interval matches the period-2 cluster (`acovercos`, `acoversin`, `aversin`). https://claude.ai/code/session_01CqGYLHLpXrp7baqtrMoRgx
1 parent aa5e182 commit 8bd1604

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/node_modules/@stdlib/math/iter/special/sinpi/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ The returned [iterator][mdn-iterator-protocol] protocol-compliant object has the
9595
<!-- eslint no-undef: "error" -->
9696

9797
```javascript
98-
var randu = require( '@stdlib/random/iter/randu' );
98+
var uniform = require( '@stdlib/random/iter/uniform' );
9999
var iterSinpi = require( '@stdlib/math/iter/special/sinpi' );
100100

101101
// Create a seeded iterator for generating pseudorandom numbers:
102-
var rand = randu({
102+
var rand = uniform( 0.0, 2.0, {
103103
'seed': 1234,
104104
'iter': 10
105105
});

lib/node_modules/@stdlib/math/iter/special/sinpi/examples/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
'use strict';
2020

21-
var randu = require( '@stdlib/random/iter/randu' );
21+
var uniform = require( '@stdlib/random/iter/uniform' );
2222
var iterSinpi = require( './../lib' );
2323

2424
// Create a seeded iterator for generating pseudorandom numbers:
25-
var rand = randu({
25+
var rand = uniform( 0.0, 2.0, {
2626
'seed': 1234,
2727
'iter': 10
2828
});

0 commit comments

Comments
 (0)