# Difference between revisions of "Approximation of e"

From JSXGraph Wiki

A WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 18: | Line 18: | ||

var n = series.dataX.length, | var n = series.dataX.length, | ||

val = series.dataY[n - 1] + 1 / JXG.Math.factorial(n); | val = series.dataY[n - 1] + 1 / JXG.Math.factorial(n); | ||

− | + | series.dataX.push(n); | |

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

}; | }; | ||