Post Pi Day Post

Well, Pi Day has come and gone, so what’s left for a Pi nerd to look forward to? Tau Day? Heresy! That other Pi Day, July 22nd (22/7)? Pa-lease. Accept the fact that it’s OK to talk about Pi when it’s not Pi Day? Sure, why not?

A random thought caught my attention after I posted my article Pi Day Rematch: Apple II vs. HP-41C that suggested that I could have been more fair to the HP-41C by highlighting some of it’s obvious strengths, e.g. portability and energy efficiency. And, I got a lot of personal emails expressing that thought as well. (In my defense, it wasn’t I that compared the two in the first place–some people are just too serious :-).

Lets be honest, was there any doubt in anybody’s mind that a late ’70s pocket calculator could best an Apple II in a 1000 digit drag race? Or ENIAC for that matter? However, what if, you had to compute Pi within a fixed energy budget of 1 Wh or on a flight to Paris? Which would you choose?


Energy Efficiency

I remember a time when the energy utilization of home computing equipment was never given a second thought other than, “turn it off before you go to bed.” Fast-forward to today: Our consumer electronics have a plethora of energy saving options, e.g. my computer suspends when not in use, my external drives spin down when unused, my fridge has a vacation mode, all my LCD TVs have a green mode (my Sharp rates your energy efficiency with green leaves (0-5)), my electric utility company wants to control my air conditioner, etc… Today, energy utilization matters. So, lets pretend it mattered in 1980. You’ve got a 1 Wh budget to compute Pi to 1000 digits. What do you use, the Apple II or the HP-41C?

The community members of comp.sys.apple2 and MoHPC were kind enough to measure the power consumption of the Apple II and HP-41C and reported 24 Watts and 72 mW respectively.

The best Apple II and HP-41C times reported by my tests were 194 seconds and 08:21:57 (30,117 seconds) respectively making the energy used 24W*(194/3600) = 1.29 Wh and 0.072W*(30117/3600) = 0.60 Wh.

It should be obvious why. The Apple II, as a general-purpose computer, has a lot of unused powered components where as the HP-41C, while still a computer, is a limited-purpose device for specific computational tasks. To further handicap the Apple II, the Apple II has to convert from AC to DC. The drop in efficiency for retro tech could be as high as 50%. However, none of that takes away from the fact that for computational intensive tasks, at least those involving Pi, the HP-41C is more efficient.

The table below contains all the benchmarks that I ran with their estimated energy usage. The original Apple Pi uses more than 1000 times the energy of the HP-41C; a whopping 1KWh!


Platform
Code
Base Time(s) Watts Wh
HP-41C
RPN
105 30117 0.072 0.60
Apple II
Assembly
10 194 24 1.29
Apple II
MAF
216 1496 24 9.97
Apple II
cc65 2.13
216 1514 24 10.09
Apple II
Aztec C
216 2180 24 14.53
Apple II
Integer BASIC
10 150410 24 1002.73


Portability

The HP-41C is a remarkable late-’70s gadget. It has a display, an alphanumeric keyboard, a file system, removable storage, expandable memory, and sports general purpose programmable I/O (via HP-IL); all the earmarks of a ’70s computer, and it fits in your pocket.

Lets say that you are traveling non-stop to Paris from my hometown, and in the 10-11 Hr journey you need to compute at least 704 digits of Pi so that you can personally confirm that the digits of Pi in the Palais de la Découverte “π Room”, that were originally incorrect until corrected in 1945, are actually correct[1, pp. 50].

No contest here. There isn’t a pocket-able Apple II product unless you count emulation on the iPhone/iPad. What you need is a very capable, energy efficient, pocket computer–the HP-41C. 704 digits in < 10-11 Hr? No problem, it'd take a little over 4 hours. You can use the rest of your time to compute e. Too bad there isn’t an “e room”, or is there?


The “π Room”

No, I didn’t compute Pi on my way to Paris, but just knowing that I could have with my 41CX in my pocket reassured me. :-)

All Pi nerds (make that all nerds) that find themselves in Paris should make the pilgrimage to Palais de la Découverte to visit the only “π Room” in existence (or so I have been able to find). This science museum is a short walk from the Eiffel Tower, so if you are willing to spend the time to see a marvel of French engineering, then you might as well go see the most fabulous piece of calculation ever performed[2, pp.406] by an Englishman.


William Shanks of England

William Shanks (1812 – 1882) was an amateur mathematician and IMHO is still the king of all Pi nerds. William Shanks computed Pi to 707 places over a 15+ year period with nothing but pen, paper, and his wits[2, pp. 305]. A stunning achievement and the last computation of its kind, however, there is an error, can you see it?


Proceedings of the Royal Society of London, 21 (1873), 319.

An example of a mechanical desk calculator available in 1945

No? Don’t worry, nobody else did either until 72 years later when another Englishman, D. F. Ferguson, in 1945 using a mechanical desk calculator checked Shanks’ results and discovered that Shanks was only correct up to digit 527[2, pp. 592]. Fortunately (for Shanks), Shanks never knew of his error. He passed away with the belief that he had achieved the unachievable.

Ferguson’s Pi were last non-digital calculations[2, pp. 627]; the era of supermen manually computing Pi ended in 1949 when ENIAC cranked out 2047 digits over a three-day holiday weekend[2, pp. 277].

Shanks’ Pi with corrections:


Value of π = 3 ·

· 
1
4
1
5
9
  
2
6
5
3
5
  
8
9
7
9
3
  
2
3
8
4
6
  
2
6
4
3
3
  
8
3
2
7
9
  
5
0
2
8
8
  
4
1
9
7
1
  
6
9
3
9
9
  
3
7
5
1
0
  
5
8
2
0
9
  
7
4
9
4
4
5
9
2
3
0
  
7
8
1
6
4
  
0
6
2
8
6
  
2
0
8
9
9
  
8
6
2
8
0
  
3
4
8
2
5
  
3
4
2
1
1
  
7
0
6
7
9
  
8
2
1
4
8
  
0
8
6
5
1
  
3
2
8
2
3
  
0
6
6
4
7
0
9
3
8
4
  
4
6
0
9
5
  
5
0
5
8
2
  
2
3
1
7
2
  
5
3
5
9
4
  
0
8
1
2
8
  
4
8
1
1
1
  
7
4
5
0
2
  
8
4
1
0
2
  
7
0
1
9
3
  
8
5
2
1
1
  
0
5
5
5
9
6
4
4
6
2
  
2
9
4
8
9
  
5
4
9
3
0
  
3
8
1
9
6
  
4
4
2
8
8
  
1
0
9
7
5
  
6
6
5
9
3
  
3
4
4
6
1
  
2
8
4
7
5
  
6
4
8
2
3
  
3
7
8
6
7
  
8
3
1
6
5
2
7
1
2
0
  
1
9
0
9
1
  
4
5
6
4
8
  
5
6
6
9
2
  
3
4
6
0
3
  
4
8
6
1
0
  
4
5
4
3
2
  
6
6
4
8
2
  
1
3
3
9
3
  
6
0
7
2
6
  
0
2
4
9
1
  
4
1
2
7
3
7
2
4
5
8
  
7
0
0
6
6
  
0
6
3
1
5
  
5
8
8
1
7
  
4
8
8
1
5
  
2
0
9
2
0
  
9
6
2
8
2
  
9
2
5
4
0
  
9
1
7
1
5
  
3
6
4
3
6
  
7
8
9
2
5
  
9
0
3
6
0
0
1
1
3
3
  
0
5
3
0
5
  
4
8
8
2
0
  
4
6
6
5
2
  
1
3
8
4
1
  
4
6
9
5
1
  
9
4
1
5
1
  
1
6
0
9
4
  
3
3
0
5
7
  
2
7
0
3
6
  
5
7
5
9
5
  
9
1
9
5
3
0
9
2
1
8
  
6
1
1
7
3
  
8
1
9
3
2
  
6
1
1
7
9
  
3
1
0
5
1
  
1
8
5
4
8
  
0
7
4
4
6
  
2
3
7
9
9
  
6
2
7
4
9
  
5
6
7
3
5
  
1
8
8
5
7
  
5
2
7
2
4
8
9
1
2
2
  
7
9
3
8
1
  
8
3
0
1
1
  
9
4
9
1
2
  
9
8
3
3
6
  
7
3
3
6
2
  
4
4
0
6
5
  
6
6
4
3
0
  
8
6
0
2
1
  
3
9
4
9
4
  
6
3
9
5
2
  
2
4
7
3
7
1
9
0
7
0
  
2
1
7
9
8
  
6
0
9
4
3
  
7
0
2
7
7
  
0
5
3
9
2
  
1
7
1
7
6
  
2
9
3
1
7
  
6
7
5
2
3
  
8
4
6
7
4
  
8
1
8
4
6
  
7
6
6
9
4
  
0
5
1
3
2
0
0
0
5
6
  
8
1
2
7
1
  
4
5
2
6
3
  
5
6
0
8
2
  
7
7
8
5
7
  
7
1
3
4
2
  
7
5
7
7
8
  
9
6
0
9
1
  
7
3
6
3
7
  
1
7
8
7
2
  
1
4
6
8
4
  
4
0
9
0
1
2
2
4
9
5
  
3
4
3
0
1
  
4
6
5
4
9
  
5
8
5
3
7
  
1
0
5
0
7
  
9
2
2
7
9
  
6
8
9
2
5
  
8
9
2
3
5
  
4
2
0
1
9
  
9
6
  &c.
  April 14, 2011.


The “π Room” Corrected

Unfortunately, I have been unable to find any pictures of the original 1937 “π Room”. I would have really liked to have seen a before and after. Sadly, I can only give you my picture of the after:

8 6 0 2 1 3 9 4 … Yep, they fixed it.


One More Thing

There is a bonus for the retro nerd at the Palais de la Découverte: 8-bit restrooms:

Au Revoir.


Print References

  1. Arndt, Jörg, and Christoph Haenel. [Pi] – unleased . 2. ed. Berlin: Springer, 2001. Print.
  2. Berggren, Lennart, Jonathan M. Borwein, and Peter B. Borwein. Pi, a source book . 3rd ed. New York: Springer, 2004. Print.
  3. Beckmann, Petr. A history of [pi] (pi) . 4th ed. New York: Barnes & Noble, 19931971. Print.

Credits

  1. Pi Day Deathmatch Poster. Dhemerae Ford (dhemerae@gmail.com).
  2. First Pi Room Picture: http://www.palais-decouverte.fr/index.php?id=824
  3. William Shanks Picture: http://shankfamily.us/images/WilliamShank1821e.jpg
  4. Mechanical Desk Calculator Picture: http://upload.wikimedia.org/wikipedia/commons/e/ee/Comptometer_Model_WM.jpg

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>