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

Home » Public Forums » archive » precision of pi
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
precision of pi [message #6457] Wed, 03 July 1996 00:00 Go to next message
Jorn Helbert is currently offline  Jorn Helbert
Messages: 4
Registered: July 1996
Junior Member
Hi,
a simple question:
Is there any way to enhance the precision of !pi or !dpi. 5 or 8
significant digits are really not much.

cheers
jorn

--
Joern Helbert

Space and atmospheric physics group
Imperial College - London
phone: 0171 594-7898
Re: precision of pi [message #6550 is a reply to message #6457] Wed, 03 July 1996 00:00 Go to previous messageGo to next message
dan is currently offline  dan
Messages: 27
Registered: March 1993
Junior Member
In article <31DA5CAA.3D0D@ic.ac.uk>, Jorn Helbert <jorn@ic.ac.uk> writes:
|> Hi,
|> a simple question:
|> Is there any way to enhance the precision of !pi or !dpi. 5 or 8
|> significant digits are really not much.
|>
|> cheers
|> jorn
|>
|> --
|> Joern Helbert
|>
|> Space and atmospheric physics group
|> Imperial College - London
|> phone: 0171 594-7898


I type

IDL> print,!dpi,format='(f50.40)'
3.1415926535897931159979634685441851615906

Looks to me as though you've got 16 good digits.
--
************************************************************ ***
** Dan Bergmann dbergmann@llnl.gov **
** Atmospheric Science Division fax (510) 422-5844 **
** Lawrence Livermore National Lab human (510) 423-6765 **
Re: precision of pi [message #6566 is a reply to message #6457] Fri, 12 July 1996 00:00 Go to previous message
djackson is currently offline  djackson
Messages: 31
Registered: June 1993
Member
In article <31DA5CAA.3D0D@ic.ac.uk>, Jorn Helbert <jorn@ic.ac.uk> wrote:

> Hi,
> a simple question:
> Is there any way to enhance the precision of !pi or !dpi. 5 or 8
> significant digits are really not much.

I think the precision is there, but these examples will show how to display it:

IDL> print,!dpi
3.1415927

IDL> print,!dpi,format="(F20.18)"
3.141592653589793100

Cheers,
-Dick

Dick Jackson djackson@ibd.nrc.ca Institute for Biodiagnostics
Opinions are mine alone. National Research Council Canada, Winnipeg
"And I told him my dream was to live for all time
In some perfect refrain, like the man who wrote 'Danny Boy'."
- Joe Jackson, from the album _Night_Music_, 1994.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: HELP!
Next Topic: How to find 3D shaped regions inside 3D data cubes ?

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

Current Time: Thu Oct 09 21:13:16 PDT 2025

Total time taken to generate the page: 0.00757 seconds