Index Page
cspice_pi
A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X 

Abstract
I/O
Examples
Particulars
Required Reading
Version
Index_Entries

Abstract


   CSPICE_PI returns the double precision value of the constant PI.

   For important details concerning this module's function, please refer to
   the CSPICE routine pi_c.

I/O

   
   Given:
   
      None.
   
   the call:
   
      pi_double = cspice_pi()
   
   returns:
   
      A double precision scalar, the value of pi.
   

Examples


   Any numerical results shown for this example may differ between
   platforms as the results depend on the SPICE kernels used as input
   and the machine specific arithmetic implementation.

   
      print, cspice_pi()
      
   IDL outputs:   3.1415927
   
   The IDL system variable !DPI returns a double precision value
   for PI that equates the value returned by cspice_pi(), to machine
   roundoff.
   
   The IDL system variable !PI returns a single precision (float) value
   for PI that equates to the value returned by the expression
   float( cspice_pi() ).

Particulars


   None.

Required Reading


   ICY.REQ

Version


   -Icy Version 1.0.1, 13-JUN-2010, EDW (JPL)

      Minor edit to code comments eliminating typo.

   -Icy Version 1.0.0, 16-JUN-2003, EDW (JPL)

Index_Entries


   value of pi




Wed Apr  5 17:58:02 2017