org.mariuszgromada.math.mxparser.mathcollection.MathConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of MathParser.org-mXparser Show documentation
Show all versions of MathParser.org-mXparser Show documentation
mXparser is a super easy, rich, fast and highly flexible math expression parser library (parser and evaluator of mathematical expressions / formulas provided as plain text / string). Software delivers easy to use API for JAVA, Android and C# .NET/MONO (Common Language Specification compliant: F#, Visual Basic, C++/CLI). *** If you find the software useful donation or purchase is something you might consider: https://mathparser.org/donate/ *** Online store: https://payhip.com/INFIMA *** Scalar Scientific Calculator, Charts and Scripts, Scalar Lite: https://play.google.com/store/apps/details?id=org.mathparser.scalar.lite *** Scalar Pro: https://play.google.com/store/apps/details?id=org.mathparser.scalar.pro *** ScalarMath.org: https://scalarmath.org/ *** MathSpace.pl: https://mathspace.pl/ ***
/*
* @(#)MathConstants.java 6.0.0 2024-05-19
*
* MathParser.org-mXparser DUAL LICENSE AGREEMENT as of date 2024-05-19
* The most up-to-date license is available at the below link:
* - https://mathparser.org/mxparser-license
*
* AUTHOR: Copyright 2010 - 2024 Mariusz Gromada - All rights reserved
* PUBLISHER: INFIMA - https://payhip.com/infima
*
* SOFTWARE means source code and/or binary form and/or documentation.
* PRODUCT: MathParser.org-mXparser SOFTWARE
* LICENSE: DUAL LICENSE AGREEMENT
*
* BY INSTALLING, COPYING, OR OTHERWISE USING THE PRODUCT, YOU AGREE TO BE
* BOUND BY ALL OF THE TERMS AND CONDITIONS OF THE DUAL LICENSE AGREEMENT.
*
* The AUTHOR & PUBLISHER provide the PRODUCT under the DUAL LICENSE AGREEMENT
* model designed to meet the needs of both non-commercial use and commercial
* use.
*
* NON-COMMERCIAL USE means any use or activity where a fee is not charged
* and the purpose is not the sale of a good or service, and the use or
* activity is not intended to produce a profit. Examples of NON-COMMERCIAL USE
* include:
*
* 1. Non-commercial open-source software.
* 2. Non-commercial mobile applications.
* 3. Non-commercial desktop software.
* 4. Non-commercial web applications/solutions.
* 5. Non-commercial use in research, scholarly and educational context.
*
* The above list is non-exhaustive and illustrative only.
*
* COMMERCIAL USE means any use or activity where a fee is charged or the
* purpose is the sale of a good or service, or the use or activity is
* intended to produce a profit. COMMERCIAL USE examples:
*
* 1. OEMs (Original Equipment Manufacturers).
* 2. ISVs (Independent Software Vendors).
* 3. VARs (Value Added Resellers).
* 4. Other distributors that combine and distribute commercially licensed
* software.
*
* The above list is non-exhaustive and illustrative only.
*
* IN CASE YOU WANT TO USE THE PRODUCT COMMERCIALLY, YOU MUST PURCHASE THE
* APPROPRIATE LICENSE FROM "INFIMA" ONLINE STORE, STORE ADDRESS:
*
* 1. https://mathparser.org/order-commercial-license
* 2. https://payhip.com/infima
*
* NON-COMMERCIAL LICENSE
*
* Redistribution and use of the PRODUCT in source and/or binary forms,
* with or without modification, are permitted provided that the following
* conditions are met:
*
* 1. Redistributions of source code must retain the unmodified content of
* the entire MathParser.org-mXparser DUAL LICENSE AGREEMENT, including
* the definition of NON-COMMERCIAL USE, the definition of COMMERCIAL USE,
* the NON-COMMERCIAL LICENSE conditions, the COMMERCIAL LICENSE conditions,
* and the following DISCLAIMER.
* 2. Redistributions in binary form must reproduce the entire content of
* MathParser.org-mXparser DUAL LICENSE AGREEMENT in the documentation
* and/or other materials provided with the distribution, including the
* definition of NON-COMMERCIAL USE, the definition of COMMERCIAL USE, the
* NON-COMMERCIAL LICENSE conditions, the COMMERCIAL LICENSE conditions,
* and the following DISCLAIMER.
* 3. Any form of redistribution requires confirmation and signature of
* the NON-COMMERCIAL USE by successfully calling the method:
* License.iConfirmNonCommercialUse(...)
* The method call is used only internally for logging purposes, and
* there is no connection with other external services, and no data is
* sent or collected. The lack of a method call (or its successful call)
* does not affect the operation of the PRODUCT in any way. Please see
* the API documentation.
*
* COMMERCIAL LICENSE
*
* 1. Before purchasing a commercial license, the AUTHOR & PUBLISHER allow
* you to download, install, and use up to three copies of the PRODUCT to
* perform integration tests, confirm the quality of the PRODUCT, and
* its suitability. The testing period should be limited to fourteen
* days. Tests should be performed under the test environments conditions
* and not for profit generation.
* 2. Provided that you purchased a license from "INFIMA" online store
* (store address: https://mathparser.org/order-commercial-license or
* https://payhip.com/infima), and you comply with all terms and
* conditions below, and you have acknowledged and understood the
* following DISCLAIMER, the AUTHOR & PUBLISHER grant you a nonexclusive
* license with the following rights:
* 3. The license is granted only to you, the person or entity that made
* the purchase, identified and confirmed by the data provided during
* the purchase.
* 4. If you purchased a license in the "ONE-TIME PURCHASE" model, the
* license is granted only for the PRODUCT version specified in the
* purchase. The upgrade policy gives you additional rights, described
* in the dedicated section below.
* 5. If you purchased a license in the "SUBSCRIPTION" model, you may
* install and use any version of the PRODUCT during the subscription
* validity period.
* 6. If you purchased a "SINGLE LICENSE" you may install and use the
* PRODUCT on/from one workstation that is located/accessible at/from
* any of your premises.
* 7. Additional copies of the PRODUCT may be installed and used on/from
* more than one workstation, limited to the number of workstations
* purchased per order.
* 8. If you purchased a "SITE LICENSE", the PRODUCT may be installed
* and used on/from all workstations located/accessible at/from any
* of your premises.
* 9. You may incorporate the unmodified PRODUCT into your own products
* and software.
* 10. If you purchased a license with the "SOURCE CODE" option, you may
* modify the PRODUCT's source code and incorporate the modified source
* code into your own products and/or software.
* 11. Provided that the license validity period has not expired, you may
* distribute your product and/or software with the incorporated
* PRODUCT royalty-free.
* 12. You may make copies of the PRODUCT for backup and archival purposes.
* 13. Any form of redistribution requires confirmation and signature of
* the COMMERCIAL USE by successfully calling the method:
* License.iConfirmCommercialUse(...)
* The method call is used only internally for logging purposes, and
* there is no connection with other external services, and no data is
* sent or collected. The lack of a method call (or its successful call)
* does not affect the operation of the PRODUCT in any way. Please see
* the API documentation.
* 14. The AUTHOR & PUBLISHER reserve all rights not expressly granted to
* you in this agreement.
*
* ADDITIONAL CLARIFICATION ON WORKSTATION
*
* A workstation is a device, a remote device, or a virtual device, used by
* you, your employees, or other entities to whom you have commissioned
* tasks. For example, the number of workstations may refer to the number
* of software developers, engineers, architects, scientists, and other
* professionals who use the PRODUCT on your behalf. The number of
* workstations is not the number of copies of your end-product that you
* distribute to your end-users.
*
* By purchasing the COMMERCIAL LICENSE, you only pay for the number of
* workstations, while the number of copies/users of your final product
* (delivered to your end-users) is not limited.
*
* Below are some examples to help you select the right license size:
*
* Example 1: Single Workstation License
* Only one developer works on the development of your application. You do
* not use separate environments for testing, meaning you design, create,
* test, and compile your final application on one environment. In this
* case, you need a license for a single workstation.
*
* Example 2: Up to 5 Workstations License
* Two developers are working on the development of your application.
* Additionally, one tester conducts tests in a separate environment.
* You use three workstations in total, so you need a license for up to
* five workstations.
*
* Example 3: Up to 20 Workstations License
* Ten developers are working on the development of your application.
* Additionally, five testers conduct tests in separate environments.
* You use fifteen workstations in total, so you need a license for
* up to twenty workstations.
*
* Example 4: Site License
* Several dozen developers and testers work on the development of your
* application using multiple environments. You have a large,
* multi-disciplinary team involved in creating your solution. As your team
* is growing and you want to avoid licensing limitations, the best choice
* would be a site license.
*
* UPGRADE POLICY
*
* The PRODUCT is versioned according to the following convention:
*
* [MAJOR].[MINOR].[PATCH]
*
* 1. COMMERCIAL LICENSE holders can install and use the updated version
* for bug fixes free of charge, i.e. if you have purchased a license
* for the [MAJOR].[MINOR] version (e.g., 5.0), you can freely install
* all releases specified in the [PATCH] version (e.g., 5.0.2).
* The license terms remain unchanged after the update.
* 2. COMMERCIAL LICENSE holders for the [MAJOR].[MINOR] version (e.g., 5.0)
* can install and use the updated version [MAJOR].[MINOR + 1] free of
* charge, i.e., plus one release in the [MINOR] range (e.g., 5.1). The
* license terms remain unchanged after the update.
* 3. COMMERCIAL LICENSE holders who wish to upgrade their version, but are
* not eligible for the free upgrade, can claim a discount when
* purchasing the upgrade. For this purpose, please contact us via e-mail.
*
* DISCLAIMER
*
* THIS PRODUCT IS PROVIDED BY THE AUTHOR & PUBLISHER "AS IS" AND ANY EXPRESS
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL AUTHOR OR PUBLISHER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS PRODUCT, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* THE VIEWS AND CONCLUSIONS CONTAINED IN THE PRODUCT AND DOCUMENTATION ARE
* THOSE OF THE AUTHORS AND SHOULD NOT BE INTERPRETED AS REPRESENTING
* OFFICIAL POLICIES, EITHER EXPRESSED OR IMPLIED, OF THE AUTHOR OR PUBLISHER.
*
* CONTACT
*
* - e-mail: [email protected]
* - website: https://mathparser.org
* - source code: https://github.com/mariuszgromada/MathParser.org-mXparser
* - online store: https://mathparser.org/order-commercial-license
* - online store: https://payhip.com/infima
*/
package org.mariuszgromada.math.mxparser.mathcollection;
import org.mariuszgromada.math.mxparser.parsertokens.ConstantValue;
/**
* MathConstants - class representing the most important math constants.
*
* @author Mariusz Gromada
* MathParser.org - mXparser project page
* mXparser on GitHub
* INFIMA place to purchase a commercial MathParser.org-mXparser software license
* [email protected]
* ScalarMath.org - a powerful math engine and math scripting language
* Scalar Lite
* Scalar Pro
* MathSpace.pl
*
* @version 5.2.0
*/
public final class MathConstants {
/**
* Pi, Archimedes' constant or Ludolph's number
*/
public static final double PI = 3.14159265358979323846264338327950288;
/**
* Pi/2
*/
public static final double PIBY2 = PI / 2.0;
/**
* 1/Pi
*/
public static final double PIINV = 1.0 / PI;
/**
* Napier's constant, or Euler's number, base of Natural logarithm
*/
public static final double E = 2.71828182845904523536028747135266249;
/**
* Euler-Mascheroni constant
*/
public static final double EULER_MASCHERONI = 0.57721566490153286060651209008240243;
/**
* Golden ratio
*/
public static final double GOLDEN_RATIO = 1.61803398874989484820458683436563811;
/**
* Plastic constant
*/
public static final double PLASTIC = 1.32471795724474602596090885447809734;
/**
* Embree-Trefethen constant
*/
public static final double EMBREE_TREFETHEN = 0.70258;
/**
* Feigenbaum constant
*/
public static final double FEIGENBAUM_DELTA = 4.66920160910299067185320382046620161;
/**
* Feigenbaum constant
*/
public static final double FEIGENBAUM_ALFA = 2.50290787509589282228390287321821578;
/**
* Feigenbaum constant
*/
public static final double TWIN_PRIME = 0.66016181584686957392781211001455577;
/**
* Meissel-Mertens constant
*/
public static final double MEISSEL_MERTEENS = 0.26149721284764278375542683860869585;
/**
* Brun's constant for twin primes
*/
public static final double BRAUN_TWIN_PRIME = 1.902160583104;
/**
* Brun's constant for prime quadruplets
*/
public static final double BRAUN_PRIME_QUADR = 0.8705883800;
/**
* de Bruijn-Newman constant
*/
public static final double BRUIJN_NEWMAN = -2.7E-9;
/**
* Catalan's constant
*/
public static final double CATALAN = 0.91596559417721901505460351493238411;
/**
* Landau-Ramanujan constant
*/
public static final double LANDAU_RAMANUJAN = 0.76422365358922066299069873125009232;
/**
* Viswanath's constant
*/
public static final double VISWANATH = 1.13198824;
/**
* Legendre's constant
*/
public static final double LEGENDRE = 1.0;
/**
* Ramanujan-Soldner constant
*/
public static final double RAMANUJAN_SOLDNER = 1.45136923488338105028396848589202744;
/**
* Erdos-Borwein constant
*/
public static final double ERDOS_BORWEIN = 1.60669515241529176378330152319092458;
/**
* Bernstein's constant
*/
public static final double BERNSTEIN = 0.28016949902386913303;
/**
* Gauss-Kuzmin-Wirsing constant
*/
public static final double GAUSS_KUZMIN_WIRSING = 0.30366300289873265859744812190155623;
/**
* Hafner-Sarnak-McCurley constant
*/
public static final double HAFNER_SARNAK_MCCURLEY = 0.35323637185499598454;
/**
* Golomb-Dickman constant
*/
public static final double GOLOMB_DICKMAN = 0.62432998854355087099293638310083724;
/**
* Cahen's constant
*/
public static final double CAHEN = 0.6434105463;
/**
* Laplace limit
*/
public static final double LAPLACE_LIMIT = 0.66274341934918158097474209710925290;
/**
* Alladi-Grinstead constant
*/
public static final double ALLADI_GRINSTEAD = 0.8093940205;
/**
* Lengyel's constant
*/
public static final double LENGYEL = 1.0986858055;
/**
* Levy's constant
*/
public static final double LEVY = 3.27582291872181115978768188245384386;
/**
* Apery's constant
*/
public static final double APERY = 1.20205690315959428539973816151144999;
/**
* Mills' constant
*/
public static final double MILLS = 1.30637788386308069046861449260260571;
/**
* Backhouse's constant
*/
public static final double BACKHOUSE = 1.45607494858268967139959535111654356;
/**
* Porter's constant
*/
public static final double PORTER = 1.4670780794;
/**
* Porter's constant
*/
public static final double LIEB_QUARE_ICE = 1.5396007178;
/**
* Niven's constant
*/
public static final double NIVEN = 1.70521114010536776428855145343450816;
/**
* Sierpiński's constant
*/
public static final double SIERPINSKI = 2.58498175957925321706589358738317116;
/**
* Khinchin's constant
*/
public static final double KHINCHIN = 2.68545200106530644530971483548179569;
/**
* Fransén-Robinson constant
*/
public static final double FRANSEN_ROBINSON = 2.80777024202851936522150118655777293;
/**
* Landau's constant
*/
public static final double LANDAU = 0.5432589653429767;
/**
* Parabolic constant
*/
public static final double PARABOLIC = 2.29558714939263807403429804918949039;
/**
* Omega constant
*/
public static final double OMEGA = 0.56714329040978387299996866221035555;
/**
* MRB constant
*/
public static final double MRB = 0.18785964246206712024851793405427;
/**
* A069284 - Logarithmic integral function li(2)
*/
public static final double LI2 = 1.045163780117492784844588889194613136522615578151;
/**
* Gompertz Constant OEIS A073003
*/
public static final double GOMPERTZ = 0.596347362323194074341078499369279376074;
/**
* Square root of 2
*/
public static final double SQRT2 = Math.sqrt(2.0);
/**
* Square root of pi
*/
public static final double SQRTPi = 1.772453850905516027298167483341145182797549456122387128213d;
/**
* Square root of 2*pi
*/
public static final double SQRT2Pi = 2.5066282746310005024157652848110452530069867406099d;
/**
* Natural logarithm of pi
*/
public static final double LNPI = MathFunctions.ln(PI);
/**
* Tetration left convergence limit
*/
public static final double EXP_MINUS_E = Math.pow(E, -E);
/**
* Tetration right convergence limit
*/
public static final double EXP_1_OVER_E = Math.pow(E, 1.0/E);
/**
* 1 over e
*/
public static final double EXP_MINUS_1 = 1.0 / Math.E;
/**
* Natural logarithm of sqrt(2)
*/
public static final double LN_SQRT2 = MathFunctions.ln(SQRT2);
/**
* SQRT2BY2
*/
public static final double SQRT2BY2 = SQRT2/2.0;
/**
* SQRT3
*/
public static final double SQRT3 = Math.sqrt(3.0);
/**
* SQRT3BY2
*/
public static final double SQRT3BY2 = SQRT3/2.0;
/**
* D2BYSQRT3
*/
public static final double D2BYSQRT3 = 2.0/SQRT3;
/**
* SQRT3BY3
*/
public static final double SQRT3BY3 = SQRT3/3.0;
/**
* SQRT5
*/
public static final double SQRT5 = Math.sqrt(5.0);
/**
* Not-a-Number
*/
public static final double NOT_A_NUMBER = Double.NaN;
/**
* Returns constant value, where constant is represented by the
* token id in the ConstantValue class
*
* @param constantValueId Please refer to the ConstantValue class.
* @return Returns constant value if id is known, otherwise Double.NaN is returned.
*
* @see ConstantValue
*/
public static double getConstantValue(int constantValueId) {
switch (constantValueId) {
case ConstantValue.PI_ID: return MathConstants.PI;
case ConstantValue.EULER_ID: return MathConstants.E;
case ConstantValue.EULER_MASCHERONI_ID: return MathConstants.EULER_MASCHERONI;
case ConstantValue.GOLDEN_RATIO_ID: return MathConstants.GOLDEN_RATIO;
case ConstantValue.PLASTIC_ID: return MathConstants.PLASTIC;
case ConstantValue.EMBREE_TREFETHEN_ID: return MathConstants.EMBREE_TREFETHEN;
case ConstantValue.FEIGENBAUM_DELTA_ID: return MathConstants.FEIGENBAUM_DELTA;
case ConstantValue.FEIGENBAUM_ALPHA_ID: return MathConstants.FEIGENBAUM_ALFA;
case ConstantValue.TWIN_PRIME_ID: return MathConstants.TWIN_PRIME;
case ConstantValue.MEISSEL_MERTEENS_ID: return MathConstants.MEISSEL_MERTEENS;
case ConstantValue.BRAUN_TWIN_PRIME_ID: return MathConstants.BRAUN_TWIN_PRIME;
case ConstantValue.BRAUN_PRIME_QUADR_ID: return MathConstants.BRAUN_PRIME_QUADR;
case ConstantValue.BRUIJN_NEWMAN_ID: return MathConstants.BRUIJN_NEWMAN;
case ConstantValue.CATALAN_ID: return MathConstants.CATALAN;
case ConstantValue.LANDAU_RAMANUJAN_ID: return MathConstants.LANDAU_RAMANUJAN;
case ConstantValue.VISWANATH_ID: return MathConstants.VISWANATH;
case ConstantValue.LEGENDRE_ID: return MathConstants.LEGENDRE;
case ConstantValue.RAMANUJAN_SOLDNER_ID: return MathConstants.RAMANUJAN_SOLDNER;
case ConstantValue.ERDOS_BORWEIN_ID: return MathConstants.ERDOS_BORWEIN;
case ConstantValue.BERNSTEIN_ID: return MathConstants.BERNSTEIN;
case ConstantValue.GAUSS_KUZMIN_WIRSING_ID: return MathConstants.GAUSS_KUZMIN_WIRSING;
case ConstantValue.HAFNER_SARNAK_MCCURLEY_ID: return MathConstants.HAFNER_SARNAK_MCCURLEY;
case ConstantValue.GOLOMB_DICKMAN_ID: return MathConstants.GOLOMB_DICKMAN;
case ConstantValue.CAHEN_ID: return MathConstants.CAHEN;
case ConstantValue.LAPLACE_LIMIT_ID: return MathConstants.LAPLACE_LIMIT;
case ConstantValue.ALLADI_GRINSTEAD_ID: return MathConstants.ALLADI_GRINSTEAD;
case ConstantValue.LENGYEL_ID: return MathConstants.LENGYEL;
case ConstantValue.LEVY_ID: return MathConstants.LEVY;
case ConstantValue.APERY_ID: return MathConstants.APERY;
case ConstantValue.MILLS_ID: return MathConstants.MILLS;
case ConstantValue.BACKHOUSE_ID: return MathConstants.BACKHOUSE;
case ConstantValue.PORTER_ID: return MathConstants.PORTER;
case ConstantValue.LIEB_QUARE_ICE_ID: return MathConstants.LIEB_QUARE_ICE;
case ConstantValue.NIVEN_ID: return MathConstants.NIVEN;
case ConstantValue.SIERPINSKI_ID: return MathConstants.SIERPINSKI;
case ConstantValue.KHINCHIN_ID: return MathConstants.KHINCHIN;
case ConstantValue.FRANSEN_ROBINSON_ID: return MathConstants.FRANSEN_ROBINSON;
case ConstantValue.LANDAU_ID: return MathConstants.LANDAU;
case ConstantValue.PARABOLIC_ID: return MathConstants.PARABOLIC;
case ConstantValue.OMEGA_ID: return MathConstants.OMEGA;
case ConstantValue.MRB_ID: return MathConstants.MRB;
case ConstantValue.LI2_ID: return MathConstants.LI2;
case ConstantValue.GOMPERTZ_ID: return MathConstants.GOMPERTZ;
case ConstantValue.LIGHT_SPEED_ID: return PhysicalConstants.LIGHT_SPEED;
case ConstantValue.GRAVITATIONAL_CONSTANT_ID: return PhysicalConstants.GRAVITATIONAL_CONSTANT;
case ConstantValue.GRAVIT_ACC_EARTH_ID: return PhysicalConstants.GRAVIT_ACC_EARTH;
case ConstantValue.PLANCK_CONSTANT_ID: return PhysicalConstants.PLANCK_CONSTANT;
case ConstantValue.PLANCK_CONSTANT_REDUCED_ID: return PhysicalConstants.PLANCK_CONSTANT_REDUCED;
case ConstantValue.PLANCK_LENGTH_ID: return PhysicalConstants.PLANCK_LENGTH;
case ConstantValue.PLANCK_MASS_ID: return PhysicalConstants.PLANCK_MASS;
case ConstantValue.PLANCK_TIME_ID: return PhysicalConstants.PLANCK_TIME;
case ConstantValue.LIGHT_YEAR_ID: return AstronomicalConstants.LIGHT_YEAR;
case ConstantValue.ASTRONOMICAL_UNIT_ID: return AstronomicalConstants.ASTRONOMICAL_UNIT;
case ConstantValue.PARSEC_ID: return AstronomicalConstants.PARSEC;
case ConstantValue.KILOPARSEC_ID: return AstronomicalConstants.KILOPARSEC;
case ConstantValue.EARTH_RADIUS_EQUATORIAL_ID: return AstronomicalConstants.EARTH_RADIUS_EQUATORIAL;
case ConstantValue.EARTH_RADIUS_POLAR_ID: return AstronomicalConstants.EARTH_RADIUS_POLAR;
case ConstantValue.EARTH_RADIUS_MEAN_ID: return AstronomicalConstants.EARTH_RADIUS_MEAN;
case ConstantValue.EARTH_MASS_ID: return AstronomicalConstants.EARTH_MASS;
case ConstantValue.EARTH_SEMI_MAJOR_AXIS_ID: return AstronomicalConstants.EARTH_SEMI_MAJOR_AXIS;
case ConstantValue.MOON_RADIUS_MEAN_ID: return AstronomicalConstants.MOON_RADIUS_MEAN;
case ConstantValue.MOON_MASS_ID: return AstronomicalConstants.MOON_MASS;
case ConstantValue.MONN_SEMI_MAJOR_AXIS_ID: return AstronomicalConstants.MOON_SEMI_MAJOR_AXIS;
case ConstantValue.SOLAR_RADIUS_ID: return AstronomicalConstants.SOLAR_RADIUS;
case ConstantValue.SOLAR_MASS_ID: return AstronomicalConstants.SOLAR_MASS;
case ConstantValue.MERCURY_RADIUS_MEAN_ID: return AstronomicalConstants.MERCURY_RADIUS_MEAN;
case ConstantValue.MERCURY_MASS_ID: return AstronomicalConstants.MERCURY_MASS;
case ConstantValue.MERCURY_SEMI_MAJOR_AXIS_ID: return AstronomicalConstants.MERCURY_SEMI_MAJOR_AXIS;
case ConstantValue.VENUS_RADIUS_MEAN_ID: return AstronomicalConstants.VENUS_RADIUS_MEAN;
case ConstantValue.VENUS_MASS_ID: return AstronomicalConstants.VENUS_MASS;
case ConstantValue.VENUS_SEMI_MAJOR_AXIS_ID: return AstronomicalConstants.VENUS_SEMI_MAJOR_AXIS;
case ConstantValue.MARS_RADIUS_MEAN_ID: return AstronomicalConstants.MARS_RADIUS_MEAN;
case ConstantValue.MARS_MASS_ID: return AstronomicalConstants.MARS_MASS;
case ConstantValue.MARS_SEMI_MAJOR_AXIS_ID: return AstronomicalConstants.MARS_SEMI_MAJOR_AXIS;
case ConstantValue.JUPITER_RADIUS_MEAN_ID: return AstronomicalConstants.JUPITER_RADIUS_MEAN;
case ConstantValue.JUPITER_MASS_ID: return AstronomicalConstants.JUPITER_MASS;
case ConstantValue.JUPITER_SEMI_MAJOR_AXIS_ID: return AstronomicalConstants.JUPITER_SEMI_MAJOR_AXIS;
case ConstantValue.SATURN_RADIUS_MEAN_ID: return AstronomicalConstants.SATURN_RADIUS_MEAN;
case ConstantValue.SATURN_MASS_ID: return AstronomicalConstants.SATURN_MASS;
case ConstantValue.SATURN_SEMI_MAJOR_AXIS_ID: return AstronomicalConstants.SATURN_SEMI_MAJOR_AXIS;
case ConstantValue.URANUS_RADIUS_MEAN_ID: return AstronomicalConstants.URANUS_RADIUS_MEAN;
case ConstantValue.URANUS_MASS_ID: return AstronomicalConstants.URANUS_MASS;
case ConstantValue.URANUS_SEMI_MAJOR_AXIS_ID: return AstronomicalConstants.URANUS_SEMI_MAJOR_AXIS;
case ConstantValue.NEPTUNE_RADIUS_MEAN_ID: return AstronomicalConstants.NEPTUNE_RADIUS_MEAN;
case ConstantValue.NEPTUNE_MASS_ID: return AstronomicalConstants.NEPTUNE_MASS;
case ConstantValue.NEPTUNE_SEMI_MAJOR_AXIS_ID: return AstronomicalConstants.NEPTUNE_SEMI_MAJOR_AXIS;
case ConstantValue.TRUE_ID: return BooleanAlgebra.TRUE;
case ConstantValue.FALSE_ID: return BooleanAlgebra.FALSE;
case ConstantValue.NAN_ID: return MathConstants.NOT_A_NUMBER;
}
return Double.NaN;
}
}