Constants is a Fortran 95 module implementation of the astronomical and physical constants data given in Appendix A (a C++ header file version is also available). Constants also includes high-precision values of mathematical constants (π, e) and conversion factors between degrees and radians. In addition, Constants provides various machine constants characteristic of the particular platform that a code is running on. For example, in the Fortran 95 implementation, Constants includes machine-queried KIND designations for single, double, and quadruple precision, the smallest and largest numbers that can be represented by the computer for a specific precision, and the number of significant figures that can be represented for each level of precision.
Constants is employed by the other codes described in the appendices that follow. The source code is available for download from the resources tab on following
Review the options below to login to check your access.
Log in with your Cambridge Aspire website account to check access.
If you believe you should have access to this content, please contact your institutional librarian or consult our FAQ page for further information about accessing our content.