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_dpr

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

Abstract


   CSPICE_DPR returns the value of the constant 180/pi which represents
   the number of degrees of arc per radian.

I/O


   The call:

      [dpr] = cspice_dpr

   returns:

      dpr      the number of degrees per radian: 180/pi.

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

               The value of pi is determined by the acos function. That
               is,

                     dpr = 180.0 / acos ( -1.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) Compute the number of degrees of arc per radian.

      Example code begins here.


      function dpr_ex1()

         fprintf( 'Degrees per Radian: %10.7f', cspice_dpr )


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


      Degrees per Radian: 57.2957795


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


   MICE.REQ

Literature_References


   None.

Author_and_Institution


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

Version


   -Mice Version 1.1.0, 25-AUG-2021 (EDW) (JDR)

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

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

       Eliminated use of "lasterror" in rethrow.

       Removed reference to the function's corresponding CSPICE header from
       -Required_Reading section.

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

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

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

Index_Entries


   degrees per radian


Fri Dec 31 18:44:23 2021