Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Dec 3, 2024
1 parent 2d43846 commit 64a335a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 20 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2640,6 +2640,7 @@ A total of 5 people contributed to this release. Thank you to the following cont

<details>

- [`299517a`](https://github.com/stdlib-js/stdlib/commit/299517a7a1e3494b93b2368c4f135a5826f88090) - **docs:** update examples in `math/base/special/lcmf` [(#3319)](https://github.com/stdlib-js/stdlib/pull/3319) _(by Gunj Joshi, Athan Reines)_
- [`7d8ab5a`](https://github.com/stdlib-js/stdlib/commit/7d8ab5a148946f94121316cc1dc5d22936e7ea57) - **feat:** add `ii_f` API in `math/base/napi/binary` [(#3315)](https://github.com/stdlib-js/stdlib/pull/3315) _(by Gunj Joshi)_
- [`c0d083d`](https://github.com/stdlib-js/stdlib/commit/c0d083d4329c439d9c002479740518584e5f5977) - **feat:** add `math/base/special/lcmf` _(by Aayush Khanna, stdlib-bot)_
- [`92c0d4e`](https://github.com/stdlib-js/stdlib/commit/92c0d4e65a8ffef2a2264ba906cfe8020c483b13) - **docs:** clean-up and use C floats when appropriate _(by Philipp Burckhardt)_
Expand Down
15 changes: 5 additions & 10 deletions base/special/lcmf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,15 @@ v = lcmf( 48, NaN );
<!-- eslint no-undef: "error" -->

```javascript
var randu = require( '@stdlib/random/base/randu' );
var roundf = require( '@stdlib/math/base/special/roundf' );
var randu = require( '@stdlib/random/array/discrete-uniform' );
var lcmf = require( '@stdlib/math/base/special/lcmf' );

var a;
var b;
var v;
var i;
var a = randu( 100, 0, 50 );
var b = randu( 100, 0, 50 );

var i;
for ( i = 0; i < 100; i++ ) {
a = roundf( randu() * 50 );
b = roundf( randu() * 50 );
v = lcmf( a, b );
console.log( 'lcmf(%d,%d) = %d', a, b, v );
console.log( 'lcmf(%d,%d) = %d', a[ i ], b[ i ], lcmf( a[ i ], b[ i ] ) );
}
```

Expand Down
15 changes: 5 additions & 10 deletions base/special/lcmf/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,13 @@

'use strict';

var randu = require( '@stdlib/random/base/randu' );
var roundf = require( './../../../../base/special/roundf' );
var randu = require( '@stdlib/random/array/discrete-uniform' );
var lcmf = require( './../lib' );

var a;
var b;
var v;
var i;
var a = randu( 100, 0, 50 );
var b = randu( 100, 0, 50 );

var i;
for ( i = 0; i < 100; i++ ) {
a = roundf( randu() * 50 );
b = roundf( randu() * 50 );
v = lcmf( a, b );
console.log( 'lcmf(%d,%d) = %d', a, b, v );
console.log( 'lcmf(%d,%d) = %d', a[ i ], b[ i ], lcmf( a[ i ], b[ i ] ) );
}

0 comments on commit 64a335a

Please sign in to comment.