[Haskell-cafe] Canned routines for the first say thousand digits of pi, e, sqrt 2, etc?

Jeffrey Brown jeffbrown.the at gmail.com
Thu Dec 17 23:45:54 UTC 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20151217/f2c3838c/attachment.html>


More information about the Haskell-Cafe mailing list