The mathematical constant e is the unique real number such that the function ex has the same value as the slope of the tangent line, for all values of x.[Wikipedia]
It is computed like this:
1/0! + 1/1! + 1/2! + 1/3! + 1/4! and so on…
Note that 0!=1, and 1/1=1
As the calc stores numbers with 14 digits (it shows 10) the program should calculate a number of digits, forget those and calculate the next ones. It should be something like this:
0→B For(A,0,12 B+(1/A!)→B Output(1,1,B End B-2,718281828→B For(C,13,15 ////I use 15 because it doesn't matter, if I use anything more than 15 no changes are visible.// B+(1/C!)→B Output(2,1,B End
When running this, the first row of digits is ok, the second row until 4590, too. But after that I don't know what goes wrong.
Can anybody make this, or tell me what is wrong with this program?
E can be found here until over 2 million digits (if somebody makes the calc compute E to over this amount of digits, wow :D)
I hope somebody can help me :)
EDIT: nothing special, just some capitals.