e = 2.71828182845904523536028747135266249775724709369995 ... and on ...


 

Euler's number, e, is defined as being the sum as n goes to infinity of 1/n! — which works out fine when programmed as an iterative sum in a loop with increments n from 1 to a finite relatively small integer, say 20.

Results are less well defined when it comes to programming the formula, ( 1 + 1/n ) ^ n
where, theoretically, the larger the integer n, the more accurate the result. In this instance the result of 1 + 1/n is raised to the power of n instead of using a sum.
 

For e = 1 + 1/n!



 

For e = ( 1 + ( 1/n ) ) ^ n



 

Display source
 

All Rights Reserved. Copyright © 2024 eSand.net
 | Another JustWord webpage | Contact |