Some of the frequently needed constants in astronomy are collected in the class Aconst. They are all defined as public and static, so you won't be able to change them. The only way to modify the values is to define your own class Aconst. But be sure to have all of the constants of the original class Aconst defined in it, because they may be needed in classes derived from JulianTime or CalendarDate and so on.
| Name of constant | Value of constant |
| public static double SpeedOfLight | 299792458.0 |
| public static double EarthEquatorialRadius | 6378137.0 |
| public static double EarthOblateness | 1.0/298.2572 |
| public static double AstronomicalUnit | 149.59787E9 |
| public static double Epsilon2000 | 84381.448 |
| public static double Planck | 6.62628e-34 |
| public static double JD19 | 2415020.0 |
| public static double J1900 | 2415020.0 |
| public static double JD20 | 2451545.0 |
| public static double J2000 | 2451545.0 |
| public static double JulianCentury | 36525.0 |
| public static double BD19 | 2415020.31352 |
| public static double B1900 | 2415020.31352 |
| public static double TropicalYear | 365.242198781 |
| public static double SiderealDay | 86164.09054 |
| public static double SolarDay | 86400.0 |
| public static double TDT_TAI | 32.184 |
| public static double JulianEphemZero | 2440000.0 |
| public static double JulianMJDZero | 2400000.5 |
| public static double JulianComputerZero | 2440587.5 |
| public static double GM_Sun | 132712438000.0E9 |
| public static double GM_Earth | 398600.5E9 |
| public static double GM_Moon | 4902.799703E9 |
| public static double GM_EarthMoon | 403503.2997E9 |
| public static double GM_Mercury | 22032.08015E9 |
| public static double GM_Venus | 324858.7609E9 |
| public static double GM_Mars | 42828.28596E9 |
| public static double GM_Jupiter | 126712596.6E9 |
| public static double GM_Saturn | 37939519.15E9 |
| public static double GM_Uranus | 5780158.449E9 |
| public static double GM_Neptune | 6871307.756E9 |
| public static double GM_SolarSystem | 132890534800.0E9 |
| public static double Pi | 3.14159265358979323846 |
| public static double HalfPi | 0.5*Pi |
| public static double TwoPi | 2.0*Pi |
| public static double RadianToDegree | 180.0/Pi |
| public static double DegreeToRadian | Pi/180.0 |
| public static double EpsilonDouble | 2.2204460492503131E-16 |
Dieter Egger, (dieter@alpha.fesg.tu-muenchen.de), 1996-09-18