comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Calculating Pi
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Calculating Pi [message #53338 is a reply to message #53246] Mon, 02 April 2007 14:41 Go to previous message
jschwab@gmail.com is currently offline  jschwab@gmail.com
Messages: 30
Registered: December 2006
Member
On Apr 2, 4:09 am, Paolo Grigis <pgri...@astro.phys.ethz.ch> wrote:
> The problem here is not one of method for computing Pi
> (as remarked, plenty are available), but rather the lack
> of an arbitrary precision library in IDL... (or has
> anybody already written one?)
>
> Ciao,
> Paolo

There are a class of formulas called Bailey-Borwein-Plouffe (BBP) that
let you find the nth digit, without having found the preceding ones.
If you head to your library or Google around, I'm sure you can find
out enough to show off to your heart's content. With double precision,
I think that should let you get the first 10^7 digits or so.

I Googled and found code examples here
http://crd.lbl.gov/~dhbailey/expmath/bbp-codes/

Cheers,
Josiah
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Problem with TIF image
Next Topic: Indexing problems under V6

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 22:44:52 PDT 2025

Total time taken to generate the page: 1.92007 seconds