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 Nov 9, 2023
1 parent 344cd2d commit 87ded8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions base/tools/continued-fraction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Evaluates the continued fraction described by the supplied `generator` argument.

Using an ES6 [Generator object][es6-generator]:

<!-- eslint-disable no-restricted-syntax -->
<!-- eslint-disable no-restricted-syntax, node/no-unsupported-features/es-syntax -->

```javascript
// Continued fraction for (e-1)^(-1):
Expand Down Expand Up @@ -171,7 +171,7 @@ function generator() {

## Examples

<!-- eslint-disable no-restricted-syntax -->
<!-- eslint-disable no-restricted-syntax, node/no-unsupported-features/es-syntax -->

<!-- eslint no-undef: "error" -->

Expand Down
7 changes: 4 additions & 3 deletions base/tools/sum-series/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Computes the sum of the series given by the supplied `generator` argument. `gene

Using an ES6 [Generator object][es6-generator]:

<!-- eslint-disable no-restricted-syntax -->
<!-- eslint-disable no-restricted-syntax, node/no-unsupported-features/es-syntax -->

```javascript
var pow = require( '@stdlib/math/base/special/pow' );
Expand Down Expand Up @@ -104,10 +104,11 @@ To change the maximum number of terms to be summed, set the `maxTerms` option.
```javascript
var pow = require( '@stdlib/math/base/special/pow' );

// Note: infinite sum is 2
var out = sumSeries( geometricSeriesClosure( 0.5 ), {
'maxTerms': 10
});
// returns ~1.998 (infinite sum is 2)
// returns ~1.998

function geometricSeriesClosure( x ) {
var exponent = -1;
Expand Down Expand Up @@ -149,7 +150,7 @@ function geometricSeriesClosure( x ) {

## Examples

<!-- eslint-disable no-restricted-syntax -->
<!-- eslint-disable no-restricted-syntax, node/no-unsupported-features/es-syntax -->

<!-- eslint no-undef: "error" -->

Expand Down

0 comments on commit 87ded8e

Please sign in to comment.