You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/math/base/special/sqrtpi/README.md
+2-16
Original file line number
Diff line number
Diff line change
@@ -66,15 +66,14 @@ var v = sqrtpi( -4.0 );
66
66
<!-- eslint no-undef: "error" -->
67
67
68
68
```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' );
71
70
var sqrtpi =require( '@stdlib/math/base/special/sqrtpi' );
72
71
73
72
var x;
74
73
var i;
75
74
76
75
for ( i =0; i <100; i++ ) {
77
-
x =round( randu() *100.0 );
76
+
x =discreteUniform( 0, 100 );
78
77
console.log( 'sqrtpi(%d) = %d', x, sqrtpi( x ) );
79
78
}
80
79
```
@@ -87,13 +86,6 @@ for ( i = 0; i < 100; i++ ) {
87
86
88
87
<sectionclass="related">
89
88
90
-
* * *
91
-
92
-
## See Also
93
-
94
-
- <spanclass="package-name">[`@stdlib/math/base/special/sqrt`][@stdlib/math/base/special/sqrt]</span><spanclass="delimiter">: </span><spanclass="description">compute the principal square root of a double-precision floating-point number.</span>
95
-
- <spanclass="package-name">[`@stdlib/math/base/special/rsqrt`][@stdlib/math/base/special/rsqrt]</span><spanclass="delimiter">: </span><spanclass="description">compute the reciprocal square root of a double-precision floating-point number.</span>
0 commit comments