Class MathConstants
java.lang.Object
org.mariuszgromada.math.mxparser.mathcollection.MathConstants
MathConstants - class representing the most important math constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleAlladi-Grinstead constantstatic final doubleApery's constantstatic final doubleBackhouse's constantstatic final doubleBernstein's constantstatic final doubleBrun's constant for prime quadrupletsstatic final doubleBrun's constant for twin primesstatic final doublede Bruijn-Newman constantstatic final doubleCahen's constantstatic final doubleCatalan's constantstatic final doubleD2BYSQRT3static final doubleNapier's constant, or Euler's number, base of Natural logarithmstatic final doubleEmbree-Trefethen constantstatic final doubleErdos-Borwein constantstatic final doubleEuler-Mascheroni constantstatic final doubleTetration right convergence limitstatic final double1 over estatic final doubleTetration left convergence limitstatic final doubleFeigenbaum constantstatic final doubleFeigenbaum constantstatic final doubleFransén-Robinson constantstatic final doubleGauss-Kuzmin-Wirsing constantstatic final doubleGolden ratiostatic final doubleGolomb-Dickman constantstatic final doubleGompertz Constant OEIS A073003static final doubleHafner-Sarnak-McCurley constantstatic final doubleKhinchin's constantstatic final doubleLandau's constantstatic final doubleLandau-Ramanujan constantstatic final doubleLaplace limitstatic final doubleLegendre's constantstatic final doubleLengyel's constantstatic final doubleLevy's constantstatic final doubleA069284 - Logarithmic integral function li(2)static final doublePorter's constantstatic final doubleNatural logarithm of sqrt(2)static final doubleNatural logarithm of pistatic final doubleMeissel-Mertens constantstatic final doubleMills' constantstatic final doubleMRB constantstatic final doubleNiven's constantstatic final doubleNot-a-Numberstatic final doubleOmega constantstatic final doubleParabolic constantstatic final doublePi, Archimedes' constant or Ludolph's numberstatic final doublePi/2static final double1/Pistatic final doublePlastic constantstatic final doublePorter's constantstatic final doubleRamanujan-Soldner constantstatic final doubleSierpiński's constantstatic final doubleSquare root of 2static final doubleSQRT2BY2static final doubleSquare root of 2*pistatic final doubleSQRT3static final doubleSQRT3BY2static final doubleSQRT3BY3static final doubleSQRT5static final doubleSquare root of pistatic final doubleFeigenbaum constantstatic final doubleViswanath's constant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublegetConstantValue(int constantValueId) Returns constant value, where constant is represented by the token id in the ConstantValue class
-
Field Details
-
PI
public static final double PIPi, Archimedes' constant or Ludolph's number- See Also:
-
PIBY2
public static final double PIBY2Pi/2- See Also:
-
PIINV
public static final double PIINV1/Pi- See Also:
-
E
public static final double ENapier's constant, or Euler's number, base of Natural logarithm- See Also:
-
EULER_MASCHERONI
public static final double EULER_MASCHERONIEuler-Mascheroni constant- See Also:
-
GOLDEN_RATIO
public static final double GOLDEN_RATIOGolden ratio- See Also:
-
PLASTIC
public static final double PLASTICPlastic constant- See Also:
-
EMBREE_TREFETHEN
public static final double EMBREE_TREFETHENEmbree-Trefethen constant- See Also:
-
FEIGENBAUM_DELTA
public static final double FEIGENBAUM_DELTAFeigenbaum constant- See Also:
-
FEIGENBAUM_ALFA
public static final double FEIGENBAUM_ALFAFeigenbaum constant- See Also:
-
TWIN_PRIME
public static final double TWIN_PRIMEFeigenbaum constant- See Also:
-
MEISSEL_MERTEENS
public static final double MEISSEL_MERTEENSMeissel-Mertens constant- See Also:
-
BRAUN_TWIN_PRIME
public static final double BRAUN_TWIN_PRIMEBrun's constant for twin primes- See Also:
-
BRAUN_PRIME_QUADR
public static final double BRAUN_PRIME_QUADRBrun's constant for prime quadruplets- See Also:
-
BRUIJN_NEWMAN
public static final double BRUIJN_NEWMANde Bruijn-Newman constant- See Also:
-
CATALAN
public static final double CATALANCatalan's constant- See Also:
-
LANDAU_RAMANUJAN
public static final double LANDAU_RAMANUJANLandau-Ramanujan constant- See Also:
-
VISWANATH
public static final double VISWANATHViswanath's constant- See Also:
-
LEGENDRE
public static final double LEGENDRELegendre's constant- See Also:
-
RAMANUJAN_SOLDNER
public static final double RAMANUJAN_SOLDNERRamanujan-Soldner constant- See Also:
-
ERDOS_BORWEIN
public static final double ERDOS_BORWEINErdos-Borwein constant- See Also:
-
BERNSTEIN
public static final double BERNSTEINBernstein's constant- See Also:
-
GAUSS_KUZMIN_WIRSING
public static final double GAUSS_KUZMIN_WIRSINGGauss-Kuzmin-Wirsing constant- See Also:
-
HAFNER_SARNAK_MCCURLEY
public static final double HAFNER_SARNAK_MCCURLEYHafner-Sarnak-McCurley constant- See Also:
-
GOLOMB_DICKMAN
public static final double GOLOMB_DICKMANGolomb-Dickman constant- See Also:
-
CAHEN
public static final double CAHENCahen's constant- See Also:
-
LAPLACE_LIMIT
public static final double LAPLACE_LIMITLaplace limit- See Also:
-
ALLADI_GRINSTEAD
public static final double ALLADI_GRINSTEADAlladi-Grinstead constant- See Also:
-
LENGYEL
public static final double LENGYELLengyel's constant- See Also:
-
LEVY
public static final double LEVYLevy's constant- See Also:
-
APERY
public static final double APERYApery's constant- See Also:
-
MILLS
public static final double MILLSMills' constant- See Also:
-
BACKHOUSE
public static final double BACKHOUSEBackhouse's constant- See Also:
-
PORTER
public static final double PORTERPorter's constant- See Also:
-
LIEB_QUARE_ICE
public static final double LIEB_QUARE_ICEPorter's constant- See Also:
-
NIVEN
public static final double NIVENNiven's constant- See Also:
-
SIERPINSKI
public static final double SIERPINSKISierpiński's constant- See Also:
-
KHINCHIN
public static final double KHINCHINKhinchin's constant- See Also:
-
FRANSEN_ROBINSON
public static final double FRANSEN_ROBINSONFransén-Robinson constant- See Also:
-
LANDAU
public static final double LANDAULandau's constant- See Also:
-
PARABOLIC
public static final double PARABOLICParabolic constant- See Also:
-
OMEGA
public static final double OMEGAOmega constant- See Also:
-
MRB
public static final double MRBMRB constant- See Also:
-
LI2
public static final double LI2A069284 - Logarithmic integral function li(2)- See Also:
-
GOMPERTZ
public static final double GOMPERTZGompertz Constant OEIS A073003- See Also:
-
SQRT2
public static final double SQRT2Square root of 2 -
SQRTPi
public static final double SQRTPiSquare root of pi- See Also:
-
SQRT2Pi
public static final double SQRT2PiSquare root of 2*pi- See Also:
-
LNPI
public static final double LNPINatural logarithm of pi -
EXP_MINUS_E
public static final double EXP_MINUS_ETetration left convergence limit -
EXP_1_OVER_E
public static final double EXP_1_OVER_ETetration right convergence limit -
EXP_MINUS_1
public static final double EXP_MINUS_11 over e- See Also:
-
LN_SQRT2
public static final double LN_SQRT2Natural logarithm of sqrt(2) -
SQRT2BY2
public static final double SQRT2BY2SQRT2BY2 -
SQRT3
public static final double SQRT3SQRT3 -
SQRT3BY2
public static final double SQRT3BY2SQRT3BY2 -
D2BYSQRT3
public static final double D2BYSQRT3D2BYSQRT3 -
SQRT3BY3
public static final double SQRT3BY3SQRT3BY3 -
SQRT5
public static final double SQRT5SQRT5 -
NOT_A_NUMBER
public static final double NOT_A_NUMBERNot-a-Number- See Also:
-
-
Constructor Details
-
MathConstants
public MathConstants()
-
-
Method Details
-
getConstantValue
public static double getConstantValue(int constantValueId) Returns constant value, where constant is represented by the token id in the ConstantValue class- Parameters:
constantValueId- Please refer to the ConstantValue class.- Returns:
- Returns constant value if id is known, otherwise Double.NaN is returned.
- See Also:
-