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 value of the constant pi.

I/O


   Given:

      No input required.

   the call:

      onepi = cspice_pi

   returns:

      onepi   the value of PI to machine precision.

              [1,1] = size(onepi); double = class(onepi)

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.

      >> pi_double = cspice_pi

      pi_double =

          3.1416

      >> sprintf( 'PI epoch: %2.11f', cspice_pi )

      ans =

      PI: 3.14159265359

   The MATLAB system variable "pi" returns a double precision value
   for PI that equates the value returned by cspice_pi, to machine
   roundoff.

Particulars


   None.

Required Reading


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

   MICE.REQ

Version


   -Mice Version 1.0.1, 11-JUN-2013, EDW (JPL)

       I/O descriptions edits to conform to Mice documentation format.

       Corrected minor typo in header.

   -Mice Version 1.0.0, 22-NOV-2005, EDW (JPL)

Index_Entries


   value of pi


Wed Apr  5 18:00:33 2017