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

Home » Public Forums » archive » 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 #53328 is a reply to message #53253] Tue, 03 April 2007 00:44 Go to previous messageGo to previous message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
jschwab@gmail.com wrote:
> 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

Yes, but these are hexadecimal digits, which you still have
to convert into decimal form... so you still need at least
one routine from the arbitrary precision library.

Ciao,
Paolo

>
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Calculating Sat. water vapor pressure from air temperature: What is wrong?
Next Topic: Re: rotate and transpose images in xobjviewer

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

Current Time: Fri Oct 10 18:06:53 PDT 2025

Total time taken to generate the page: 1.61790 seconds