Re: Infinite loop
On Mar 20, 8:32 pm, "user923005 " <dcor...@connx. comwrote:
I call it a 1/e program be cause the divided difference for one unit
step is A(n)/A(n+1) = 1/e (approximately)
You could also call it an e program, because you can get the same
series (asymptotically ) by multiplying the previous term by e.
e.g.
....
9.0000000000000 00000 27145.247361213 536000000
10.000000000000 000000 73788.778437947 738000000
27145.247361213 536 * e =73788.43263101 260340026529804 9315
e.g.
....
99.000000000000 000000
331282515698122 690000000000000 00000000000000. 000000000000000 000
99.500000000000 000000
546192530242544 100000000000000 00000000000000. 000000000000000 000
100.00000000000 0000000
900519242508405 510000000000000 00000000000000. 000000000000000 000
331282515698122 690000000000000 00000000000000 * e =
900519242508405 302330870179174 11
Seems to answer pretty nearly.
Since there are two calls to exp() in there with different args, I
guess it won't be a good way to calculate e, but I hope it has some
interesting properties that you are looking for.
On Mar 20, 8:32 pm, "user923005 " <dcor...@connx. comwrote:
/*
Here's my version of your 1/e program:
*/
Here's my version of your 1/e program:
*/
step is A(n)/A(n+1) = 1/e (approximately)
You could also call it an e program, because you can get the same
series (asymptotically ) by multiplying the previous term by e.
e.g.
....
9.0000000000000 00000 27145.247361213 536000000
10.000000000000 000000 73788.778437947 738000000
27145.247361213 536 * e =73788.43263101 260340026529804 9315
e.g.
....
99.000000000000 000000
331282515698122 690000000000000 00000000000000. 000000000000000 000
99.500000000000 000000
546192530242544 100000000000000 00000000000000. 000000000000000 000
100.00000000000 0000000
900519242508405 510000000000000 00000000000000. 000000000000000 000
331282515698122 690000000000000 00000000000000 * e =
900519242508405 302330870179174 11
Seems to answer pretty nearly.
Since there are two calls to exp() in there with different args, I
guess it won't be a good way to calculate e, but I hope it has some
interesting properties that you are looking for.
Comment