Canned routines for the first say thousand digits of pi, e, sqrt 2, etc?

Do there exist libraries for finding the first thousand or so digits of irrational numbers? In base 12? I searhed all the "Numeric" and "Numerical" packages on Hackage and found nothing appropriate. I did figure out how to change the base of a number: https://github.com/JeffreyBenjaminBrown/play/blob/master/digits/chBase.hs but that method appears limited to numbers only a dozen or so digits long. My motivation is this video, in which James Zamerski puts the first couple hundred digits of pi to music. I've listened to it maybe 15 times in two days. https://www.youtube.com/watch?v=AOaR4NS7ObI It makes me want to try playing the first few hundred digits of other irrational numbers on the piano and try to harmonize them. -- Jeffrey Benjamin Brown

Le 18/12/2015 00:45, Jeffrey Brown badly needs :
the first thousand or so digits of irrational numbers? In base 12?
Well, I wonder why not in base 314159? It would be much more Mystical, and making Music out of it would not be more lousy than in any other base. Anyway... Conversion from one base to another of an integer is a simple student exercise. But of a fraction, perhaps infinite, requires more work. I did it some centuries ago, if you want some co-recursive fun, find my Braga School participant delirium: "The most Unreliable Technique in the World to Compute Pi", still somewhere among my files ( https://karczmarczuk.users.greyc.fr/arpap/lazypi.pdf ). I never thought I would recommend it to anybody... Now, I would not call my exercice a "canned routine"... Jerzy Karczmarczuk /Caen [don't pronounce it "canned", please!], France/

you could also use pre-calculated results from files found for example in
http://www.subidiom.com/pi/
or http://www.wolframalpha.com/input/?i=N%5Bpi%2C1000%5D
and then do a base conversion.
Cheers ε/2
2015-12-18 1:28 GMT+01:00 Jerzy Karczmarczuk
Le 18/12/2015 00:45, Jeffrey Brown badly needs :
the first thousand or so digits of irrational numbers? In base 12?
Well, I wonder why not in base 314159? It would be much more Mystical, and making Music out of it would not be more lousy than in any other base. Anyway...
Conversion from one base to another of an integer is a simple student exercise. But of a fraction, perhaps infinite, requires more work. I did it some centuries ago, if you want some co-recursive fun, find my Braga School participant delirium: "The most Unreliable Technique in the World to Compute Pi", still somewhere among my files ( https://karczmarczuk.users.greyc.fr/arpap/lazypi.pdf ). I never thought I would recommend it to anybody...
Now, I would not call my exercice a "canned routine"...
Jerzy Karczmarczuk /Caen [don't pronounce it "canned", please!], France/ _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
participants (3)
-
Jeffrey Brown
-
Jerzy Karczmarczuk
-
Martin Heuschober