Author |
Topic: e to 400 decimal places (Read 3249 times) |
|
RickN
Member
 
 HP Calculator Enthusiast
Gender: 
Posts: 45
|
 |
e to 400 decimal places
« on: Oct 26th, 2005, 11:28am » |
Quote Modify
|
To learn to program the HP-16C back in 1982, I wrote a program for it that approximates e (2.718...) to 400 decimal places. http://home.comcast.net/~rick314/hp16c/HP16C_e1.jpg and http://home.comcast.net/~rick314/hp16c/HP16C_e2.jpg are scans of the original 1982 handwritten program. http://home.comcast.net/~rick314/hp16c/e400_050902.txt is the target value of frac(e), and http://home.comcast.net/~rick314/hp16c/e400_050902.16c is a program file for Jamie's emulator. (Clicking that link should start your installed emulator with the program ready to run.) Because the emulator has more memory than the calculator, all manual setup is done in the program and just execute GSB A to calculate e, then R/S repeatedly to see each set of 8 result digits. It is interesting to watch it run with the Stack, Program, and Register windows open along with "Execute at Maximum Speed". The calculation is done when LastX counts down to 1. (9/16/13 update: fixed broken file links)
|
« Last Edit: Sep 16th, 2013, 3:49pm by RickN » |
IP Logged |
|
|
|
Jamie OConnell
Administrator
    


Gender: 
Posts: 2027
|
 |
Re: HP-16C program: e to 400 decimal places
« Reply #1 on: Oct 26th, 2005, 2:24pm » |
Quote Modify
|
Thanks for sharing that.
|
|
IP Logged |
--Jamie Music is its own reward.
|
|
|
|