diff --git a/base/tools/continued-fraction/README.md b/base/tools/continued-fraction/README.md index 784a7692c..7004a97c9 100644 --- a/base/tools/continued-fraction/README.md +++ b/base/tools/continued-fraction/README.md @@ -49,7 +49,7 @@ Evaluates the continued fraction described by the supplied `generator` argument. Using an ES6 [Generator object][es6-generator]: - + ```javascript // Continued fraction for (e-1)^(-1): @@ -171,7 +171,7 @@ function generator() { ## Examples - + diff --git a/base/tools/sum-series/README.md b/base/tools/sum-series/README.md index 1719504ba..90a652813 100644 --- a/base/tools/sum-series/README.md +++ b/base/tools/sum-series/README.md @@ -36,7 +36,7 @@ Computes the sum of the series given by the supplied `generator` argument. `gene Using an ES6 [Generator object][es6-generator]: - + ```javascript var pow = require( '@stdlib/math/base/special/pow' ); @@ -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; @@ -149,7 +150,7 @@ function geometricSeriesClosure( x ) { ## Examples - +