Re: Calculating e


[Prev][Next][Index][Thread]

Re: Calculating e



At 12:59 AM 3/3/98 GMT, you wrote:
>I am surprised at the awnsers that this message has recieved.  Justin Smith
>Had Obviously not ran the program or he would have known that there wasn't
>an overflow error and that his code would do the exact same thing, just a
>different way.  Dan Cogswell said the you would have better luck writing
>this in C or BASIC.  THIS IS FOR A CALCULATOR, NOT A COMPUTER!!!!!  Sorry,
>had to get that out.  This is a calculator discussion group.  Now on to the
>question.  I had the same problem on my calc and wasn't sure what caused it.
>Through experimetation I was able to find out that the value the calc uses
>for e is the exact same as the value you will get by substituting 10^12 for

Okay.  If you want to calculate e exactly, here is how to do it:

e^x = (x^0/0!)+(x^1/1!)+(x^2/2!)+(x^3/3!)+(x^4/4!)+(x^5/5!)...

Maybe that wasn't what you were going after but it is how the calculator
should work e as (not using the (1+1/1000000000)^1000000000 method which
only comes close to e^1).


                 Thomas J. Hruska -- thruska@tir.com
Shining Light Productions -- "Meeting the needs of fellow programmers"
         http://www.geocities.com/SiliconValley/Heights/8504
                    http://shinelight.home.ml.org


References: