Skip to content

Commit d75defc

Browse files
committed
docs: simplify example
1 parent 3b1e994 commit d75defc

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,10 @@ v = lcmf( 48, NaN );
104104
var randu = require( '@stdlib/random/array/discrete-uniform' );
105105
var lcmf = require( '@stdlib/math/base/special/lcmf' );
106106

107-
var a;
108-
var b;
107+
var a = randu( 100, 0, 50 );
108+
var b = randu( 100, 0, 50 );
109109
var i;
110110

111-
a = randu( 100, 0, 50 );
112-
b = randu( 100, 0, 50 );
113-
114111
for ( i = 0; i < 100; i++ ) {
115112
console.log( 'lcmf(%d,%d) = %d', a[ i ], b[ i ], lcmf( a[ i ], b[ i ] ) );
116113
}

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@
2121
var randu = require( '@stdlib/random/array/discrete-uniform' );
2222
var lcmf = require( './../lib' );
2323

24-
var a;
25-
var b;
24+
var a = randu( 100, 0, 50 );
25+
var b = randu( 100, 0, 50 );
2626
var i;
2727

28-
a = randu( 100, 0, 50 );
29-
b = randu( 100, 0, 50 );
30-
3128
for ( i = 0; i < 100; i++ ) {
3229
console.log( 'lcmf(%d,%d) = %d', a[ i ], b[ i ], lcmf( a[ i ], b[ i ] ) );
3330
}

0 commit comments

Comments
 (0)