Main Content

Calculate π decimals with Chudnovsky algorithm to generate long and strange poems,

The world of π is vast and complex. Lot of people struggle to memorize Pi decimals for some reason. Current unofficial record is being held by a guy named Akari Haraguchi who memorized around 100.000 Pi decimals. How can he do such a thing? One common way to memorize Pi decimals is using something called Piems. What are Piems? Piems are some sort of poems that represent Pi in a way such that the length of each word (in letters) represents a digit.

A Piem example by Nobel prize sir James Hopwood Jeans:

“How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics!”
So, Pi number, letters, words, poems… and a Raspberry Zero I had for some time waiting in a drawer: the Piem machine was about to happen.

Parts
- Raspberry Pi Zero
- Thermal printer
- 7 segment 4 digit display
- DFRobot Self locking switch
- Custom 3d printed case
- 5V 4A Power Supply

How does it work

There are many algorithms to calculate Pi digits. After some research I´ve decided to use the Chudnovsky algorithm, since there was a clean and good Python implementation and tutorial by Joshua Salako”

Link to article