Table of contents
CSPICE_RPD returns the double precision value of the constant PI/180
which represents the number of radians per degree of arc.
Given:
None.
the call:
rpd = cspice_rpd( )
returns:
rpd the number of radians per degree: pi/180.
help, rpd
DOUBLE = Scalar
The value of pi is determined by the acos function. That is,
cspice_rpd = acos ( -1.0 ) / 180.0
None.
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) Print the number of radians per degree of arc.
Example code begins here.
PRO rpd_ex1
;;
;; Output the number of radians per degree, with 21.18 precision
;;
print, FORMAT='("Radians per degree: ",F21.18)', cspice_rpd()
END
When this program was executed on a Mac/Intel/IDL8.x/64-bit
platform, the output was:
Radians per degree: 0.017453292519943295
The first time the function is referenced, the value is computed
as shown above. The value is saved, and returned directly upon
subsequent reference.
Error free.
None.
None.
ICY.REQ
None.
J. Diaz del Rio (ODC Space)
E.D. Wright (JPL)
-Icy Version 1.0.1, 25-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)
radians per degree
|