Approximation of e: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
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 22:08, 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]