Approximation of e: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 28: | Line 28: | ||
}; | }; | ||
var txt1 = board.create('text', [ | var txt1 = board.create('text', [15, 1.5, function() { return 'n=' + (seq.dataX.length-1) + ': value = ' + seq.dataY[seq.dataY.length - 1]; }], {strokeColor: 'blue'}); | ||
var txt2 = board.create('text', [15, 2, function() { return 'n=' + (series.dataX.length-1) + ': value = ' + series.dataY[series.dataY.length - 1]; }], {strokeColor: 'black'}); | |||
Revision as of 22:10, 6 January 2019
This little animation approximates [math]\displaystyle{ e }[/math] (displayed by the horizontal green line) by the sequence (blue line)
- [math]\displaystyle{ (1+\frac{1}{n})^n }[/math]
and by the series (black line)
- [math]\displaystyle{ \sum_{n=0}^\infty \frac{1}{n!} }[/math]