.entry-views-count{ display: none !important; }

PiCalc – Calculate digits of pi on your iPod

As the title hints, this podzilla2 module uses a cross-compiled pi-agm binary to calculates digits of pi. It uses the terminal module to allow for input.

Due to a bug in the terminal module, backspacing will not work (I would link to a trac ticket if trac wasn’t down – if you have the time to fix it, a patch would be greatly welcomed). If you make an input mistake, just exit and re-enter the window and re-input things carefully. Once the calculations are done, pi-agm will exit and the calculated values will be saved in a text file located where-ever your current working directory is (e.g. mine saved to “/pi8k.txt”).

Here’s the readme:

”ReadMe wrote:
Last updated: Feb 18, 2008
~Keripo

Calculates digits of pi via pi-agm. Uses the terminal module for input.
Saves output to working directory (most likely root “/pi##.txt”).
Was able to calculate 8192 digits in 37 seconds (used “8k”, “2”, “-1”).

pi-agm is written by Carey Bloodworth.
http://web.archive.org/web/20030803090725/http://www.bloodworth.org/
Source code downloaded from myownlittleworld.com
http://myownlittleworld.com/miscellaneous/computers/files/pi-programs/source/pi-agm.tgz

To compile pi-agm, extract the original source code, replace the
“${LD} ${LDFLAGS} ${OUT_FILE} .o ${MATH_LIBS}” line of your intended
target in src/Makefile with “${CC} ${LDFLAGS} -o ${OUT_FILE} .o ${MATH_LIBS}”
and compile with “make fft-hartley CC=arm-elf-gcc LDFLAGS=-elf2flt”
(you can replace fft-hartley with whichever type you want). This will give
an unoptimized pi-agm binary that you can run on iPodLinux. I may port this
as a proper podzilla2 module later when I have time.


(Note that when I say “when I have time”, it doesn’t necessarily mean anytime soon ; P

Download:
http://ipl.derpapst.org/wiki/Image:Picalc-1.0.tar.gz

Knock yourselves out :wink:

~Keripo

iPodLinux forums: http://ipl.derpapst.org/oldforums/viewtopic.php?t=29515

Check Also

Beats 1.7.1b FINAL

Post Views: 162 Been super busy with school (just graduated earlier this year) and work …