# Difference between revisions of "Approximation of e"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 27: | Line 27: | ||

series.dataY.push(val); | series.dataY.push(val); | ||

}; | }; | ||

+ | |||

+ | var txt1 = board.create('text', [5, 1, function() { return 'n=' + (seq.dataX.length-1) + ' value = ' + seq.dataY[seq.dataY.length - 1]; }], {strokeColor: 'blue'}); | ||

+ | |||

var approx = function() { | var approx = function() { |

## Revision as of 00:08, 7 January 2019

This little animation approximates [math]e[/math] (displayed by the horizontal green line) by the sequence (blue line)

- [math](1+\frac{1}{n})^n[/math]

and by the series (black line)

- [math] \sum_{n=0}^\infty \frac{1}{n!} [/math]