MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
HP16C Emulator >> HP16C Programs >> e to 400 decimal places
(Message started by: RickN on Oct 26th, 2005, 11:28am)

Title: e to 400 decimal places
Post by RickN on Oct 26th, 2005, 11:28am
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)

Title: Re: HP-16C program: e to 400 decimal places
Post by Jamie OConnell on Oct 26th, 2005, 2:24pm
Thanks for sharing that.



MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.