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

Table of contents
Abstract
I/O
Parameters
Examples
Particulars
Exceptions
Files
Restrictions
Required_Reading
Literature_References
Author_and_Institution
Version
Index_Entries


Abstract


   CSPICE_TWOPI returns the double precision value of the constant 2*PI.

I/O


   Given:

      None.

   the call:

      twopi = cspice_twopi(  )

   returns:

      twopi    twice the value of pi (the ratio of a circle's circumference to
               its diameter), determined by the `acos' function.

               help, twopi
                  DOUBLE = Scalar

               That is,

                     cspice_twopi = acos ( -1.0 ) * 2.0

Parameters


   None.

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.

   1) The following code example returns the double precision value of
      the constant 2*PI and prints it out.

      Example code begins here.


      PRO twopi_ex1

          ;;
          ;; Print the double precision value of 2.0*pi
          ;;
          print, FORMAT='("2*Pi: ",F25.22)', cspice_twopi()

      END


      When this program was executed on a Mac/Intel/IDL8.x/64-bit
      platform, the output was:


      2*Pi:  6.2831853071795862319959


Particulars


   The first time the function is referenced, the value is computed
   as shown above. The value is saved, and returned directly upon
   subsequent reference.

Exceptions


   Error free.

Files


   None.

Restrictions


   None.

Required_Reading


   ICY.REQ

Literature_References


   None.

Author_and_Institution


   J. Diaz del Rio     (ODC Space)
   E.D. Wright         (JPL)

Version


   -Icy Version 1.0.1, 27-AUG-2021 (JDR)

       Edited the header to comply with NAIF standard. Added example's
       problem statement and reformatted example's output.

       Added -Parameters, -Particulars, -Exceptions, -Files, -Restrictions,
       -Literature_References and -Author_and_Institution sections.

       Removed reference to the routine's corresponding CSPICE header from
       -Abstract section.

       Added argument's type and size information in the -I/O section.

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

Index_Entries


   twice the value of pi



Fri Dec 31 18:43:08 2021