Skip to content

Commit a61ec4b

Browse files
committed
Update example
1 parent 83aae89 commit a61ec4b

File tree

4 files changed

+6
-21
lines changed

4 files changed

+6
-21
lines changed

lib/node_modules/@stdlib/math/base/special/sqrtpi/README.md

+2-16
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,14 @@ var v = sqrtpi( -4.0 );
6666
<!-- eslint no-undef: "error" -->
6767

6868
```javascript
69-
var randu = require( '@stdlib/random/base/randu' );
70-
var round = require( '@stdlib/math/base/special/round' );
69+
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
7170
var sqrtpi = require( '@stdlib/math/base/special/sqrtpi' );
7271

7372
var x;
7473
var i;
7574

7675
for ( i = 0; i < 100; i++ ) {
77-
x = round( randu() * 100.0 );
76+
x = discreteUniform( 0, 100 );
7877
console.log( 'sqrtpi(%d) = %d', x, sqrtpi( x ) );
7978
}
8079
```
@@ -87,13 +86,6 @@ for ( i = 0; i < 100; i++ ) {
8786

8887
<section class="related">
8988

90-
* * *
91-
92-
## See Also
93-
94-
- <span class="package-name">[`@stdlib/math/base/special/sqrt`][@stdlib/math/base/special/sqrt]</span><span class="delimiter">: </span><span class="description">compute the principal square root of a double-precision floating-point number.</span>
95-
- <span class="package-name">[`@stdlib/math/base/special/rsqrt`][@stdlib/math/base/special/rsqrt]</span><span class="delimiter">: </span><span class="description">compute the reciprocal square root of a double-precision floating-point number.</span>
96-
9789
</section>
9890

9991
<!-- /.related -->
@@ -104,12 +96,6 @@ for ( i = 0; i < 100; i++ ) {
10496

10597
[@stdlib/math/base/special/sqrt]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/sqrt
10698

107-
<!-- <related-links> -->
108-
109-
[@stdlib/math/base/special/rsqrt]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/rsqrt
110-
111-
<!-- </related-links> -->
112-
11399
</section>
114100

115101
<!-- /.links -->

lib/node_modules/@stdlib/math/base/special/sqrtpi/docs/types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* - For `x < 0`, the principal square root is not defined.
2727
*
2828
* @param x - input value
29-
* @returns results
29+
* @returns result
3030
*
3131
* @example
3232
* var v = sqrtpi( 4.0 );

lib/node_modules/@stdlib/math/base/special/sqrtpi/examples/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@
1818

1919
'use strict';
2020

21-
var randu = require( '@stdlib/random/base/randu' );
22-
var round = require( '@stdlib/math/base/special/round' );
21+
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
2322
var sqrtpi = require( './../lib' );
2423

2524
var x;
2625
var i;
2726

2827
for ( i = 0; i < 100; i++ ) {
29-
x = round( randu() * 100.0 );
28+
x = discreteUniform( 0, 100 );
3029
console.log( 'sqrtpi(%d) = %d', x, sqrtpi( x ) );
3130
}

lib/node_modules/@stdlib/math/base/special/sqrtpi/lib/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var PI = require( '@stdlib/constants/float64/pi' );
3030
* Computes the principal square root of the product of 𝛑 and a positive number.
3131
*
3232
* @param {number} x - input value
33-
* @returns {number} results
33+
* @returns {number} result
3434
*
3535
* @example
3636
* var v = sqrtpi( 4.0 );

0 commit comments

Comments
 (0)