# Difference between revisions of "Approximation of e"

From JSXGraph Wiki

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

Line 8: | Line 8: | ||

(function(){ | (function(){ | ||

− | var board = JXG.JSXGraph.initBoard('box', {axis:true, boundingbox: [- | + | var board = JXG.JSXGraph.initBoard('box', {axis:true, boundingbox: [-3, 3, 50, 0.5]}); |

var line = board.create('line', [[-10, Math.E], [100, Math.E]], {strokeColor: 'green', strokeWidth: 1}); | var line = board.create('line', [[-10, Math.E], [100, Math.E]], {strokeColor: 'green', strokeWidth: 1}); | ||

var seq = board.create('curve', [[0], [1]], {strokeColor: 'blue'}); | var seq = board.create('curve', [[0], [1]], {strokeColor: 'blue'}); |

## Revision as of 00:11, 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]