greetings all.

a while back on this forum there was a discussion of various calculator efforts to find 1000 digits of pi. there were some good results, but it seems that after about 1000 digits, too much space is required and so the programs competed on speed.

i had an idea for a different kind of pi calculation. here is "deep pi" for the 41c. it only calculates 6 digits of pi but it can do this starting from any given point of the decimal expansion. for example 1 XEQ "DPI" gives 141592 and 999 (the 1000'th digit counting the 3) XEQ "DPI" gives 893809.

so, in order to get as much pi as you like, start at 1, then 7 then 13 and so on. the start of the program could be modified into a simple loop that prints out successive 6-digits onto the print roll indefintely (until its out of paper). there is no state retained between each run and the internal numbers do not become large or overflow. however, and this is catch; it gets slower the further along you start. the 6 digits at 999 take some time indeed.

if you'd like to try this program. here is a text file compatible with the excellent V41 emulator

http://www.voidware.com/calcs/pi.txt its not very well commented and i recommend liberal use of the "turbo" mode. if you're interesting in improving the algorithm or the program, feel free to do so.

this is the first attempt and this version1 could well have bugs. ive tested it enough to know its not completely wrong, but there's always one somewhere. also note that i do not format the output string in any way, so for example 307 xeq gives 6606 which really means 006606!.

here are the first 1000 digits (after 3) found using this method:

141592653589793238462643383279502884197169399375105820974944

592307816406286208998628034825342117067982148086513282306647

093844609550582231725359408128481117450284102701938521105559

644622948954930381964428810975665933446128475648233786783165

271201909145648566923460348610454326648213393607260249141273

724587006606315588174881520920962829254091715364367892590360

011330530548820466521384146951941511609433057270365759591953

092186117381932611793105118548074462379962749567351885752724

891227938183011949129833673362440656643086021394946395224737

190702179860943702770539217176293176752384674818467669405132

000568127145263560827785771342757789609173637178721468440901

224953430146549585371050792279689258923542019956112129021960

864034418159813629774771309960518707211349999998372978049951

059731732816096318595024459455346908302642522308253344685035

261931188171010003137838752886587533208381420617177669147303

598253490428755468731159562863882353787593751957781857780532 1712268066130019278766111959092164201989

good luck,