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

Martin Heuschober epsilonhalbe at gmail.com
Fri Dec 18 08:35:14 UTC 2015


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 <jerzy.karczmarczuk at unicaen.fr>
:

>
> 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 at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20151218/772d821b/attachment.html>


More information about the Haskell-Cafe mailing list