Difference between revisions of "Approximation of e"

From JSXGraph Wiki
Jump to: navigation, search
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);
     seq.dataX.push(n);
+
     series.dataX.push(n);
     seq.dataY.push(val);
+
     series.dataY.push(val);
 
  };
 
  };
  

Revision as of 22:58, 6 January 2019