Package de.gsi.math
Class TMathConstants
- java.lang.Object
-
- de.gsi.math.TMathConstants
-
- Direct Known Subclasses:
TMath
public class TMathConstants extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TMathConstants()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static doubleAbs(double d)static floatAbs(float d)static intAbs(int d)static longAbs(long d)static shortAbs(short d)static doubleACos(double arg0)static doubleASin(double arg0)static doubleATan(double arg0)static doubleATan2(double y, double x)static doubleC()static doubleCcgs()static doubleCeil(double x)static intCeilNint(double x)static doubleCos(double arg0)static doubleCosH(double arg0)static doubleCUncertainty()static doubleDegToRad()static doubleE()static doubleEulerGamma()static booleanEven(long a)static doubleExp(double x)static booleanFinite(double x)static doubleFloor(double x)static intFloorNint(double x)static doubleG()static doubleGcgs()static doubleGhbarC()static doubleGhbarCUncertainty()static doubleGn()static doubleGnUncertainty()static doubleGUncertainty()static doubleH()static doubleHbar()static doubleHbarcgs()static doubleHbarUncertainty()static doubleHC()static doubleHCcgs()static doubleHcgs()static doubleHUncertainty()doubleHypot(double x, double y)static longHypot(long x, long y)some integer mathstatic doubleInvPi()static booleanIsNaN(double x)static doubleK()static doubleKcgs()static doubleKUncertainty()static doubleLdexp(double x, int exp)static doubleLn10()static doubleLog(double x)static doubleLog10(double x)static doubleLog2()static doubleLog2(double x)static doubleLogE()static doubleMax(double a, double b)static floatMax(float a, float b)static intMax(int a, int b)static longMax(long a, long b)static shortMax(short a, short b)static doubleMin(double a, double b)static floatMin(float a, float b)static intMin(int a, int b)static longMin(long a, long b)static shortMin(short a, short b)static doubleMWair()static doubleNa()static doubleNaUncertainty()static longNextPrime(long x)Return next prime number after x, unless x is a prime in which case x is returned.static intNint(double x)static intNint(float x)static booleanOdd(long a)static doublePi()static doublePiOver2()static doublePiOver4()static doublePower(double x, double y)static doubleQe()static doubleQeUncertainty()static doubleR()static doubleRadToDeg()static doubleRange(double lb, double ub, double x)static intRange(int lb, int ub, int x)static longRange(long lb, long ub, long x)static shortRange(short lb, short ub, short x)static doubleRgair()static doubleRUncertainty()static doubleSigma()static doubleSigmaUncertainty()static doubleSign(double a, double b)static floatSign(float a, float b)static intSign(int a, int b)static longSign(long a, long b)static shortSign(short a, short b)static doubleSin(double arg0)static doubleSinH(double arg0)static doubleSqr(double x)static doubleSqrt(double x)static doubleSqrt2()static doubleTan(double arg0)static doubleTanH(double arg0)static doubleTwoPi()
-
-
-
Method Detail
-
Hypot
public double Hypot(double x, double y)
-
Abs
public static double Abs(double d)
-
Abs
public static float Abs(float d)
-
Abs
public static int Abs(int d)
-
Abs
public static long Abs(long d)
-
Abs
public static short Abs(short d)
-
ACos
public static double ACos(double arg0)
-
ASin
public static double ASin(double arg0)
-
ATan
public static double ATan(double arg0)
-
ATan2
public static double ATan2(double y, double x)
-
C
public static final double C()
- Returns:
- velocity of light in [m s^-1]
-
Ccgs
public static final double Ccgs()
- Returns:
- velocity of light in [cm s^-1]
-
Ceil
public static final double Ceil(double x)
-
CeilNint
public static final int CeilNint(double x)
-
Cos
public static double Cos(double arg0)
-
CosH
public static double CosH(double arg0)
-
CUncertainty
public static final double CUncertainty()
-
DegToRad
public static final double DegToRad()
-
E
public static final double E()
- Returns:
- e (base of natural log)
-
EulerGamma
public static final double EulerGamma()
-
Even
public static boolean Even(long a)
-
Exp
public static double Exp(double x)
-
Finite
public static boolean Finite(double x)
-
Floor
public static double Floor(double x)
-
FloorNint
public static int FloorNint(double x)
-
G
public static final double G()
- Returns:
- gravitational constant in [m^3 kg^-1 s^-2]
-
Gcgs
public static final double Gcgs()
- Returns:
- gravitational constant in [cm^3 g^-1 s^-2]
-
GhbarC
public static final double GhbarC()
-
GhbarCUncertainty
public static final double GhbarCUncertainty()
-
Gn
public static final double Gn()
-
GnUncertainty
public static final double GnUncertainty()
-
GUncertainty
public static final double GUncertainty()
-
H
public static final double H()
-
Hbar
public static final double Hbar()
-
Hbarcgs
public static final double Hbarcgs()
-
HbarUncertainty
public static final double HbarUncertainty()
-
HC
public static final double HC()
-
HCcgs
public static final double HCcgs()
-
Hcgs
public static final double Hcgs()
-
HUncertainty
public static final double HUncertainty()
-
Hypot
public static long Hypot(long x, long y)some integer math- Parameters:
x- input pxy- input py- Returns:
- sqrt(px*px + py*py)
-
InvPi
public static final double InvPi()
-
IsNaN
public static boolean IsNaN(double x)
-
K
public static final double K()
-
Kcgs
public static final double Kcgs()
-
KUncertainty
public static final double KUncertainty()
-
Ldexp
public static double Ldexp(double x, int exp)
-
Ln10
public static final double Ln10()
- Returns:
- natural log of 10 (to convert log to ln)
-
Log
public static double Log(double x)
-
Log10
public static double Log10(double x)
-
Log2
public static final double Log2()
- Returns:
- base-e log of 2
-
Log2
public static double Log2(double x)
-
LogE
public static final double LogE()
- Returns:
- base-10 log of e (to convert ln to log)
-
Max
public static double Max(double a, double b)
-
Max
public static float Max(float a, float b)
-
Max
public static int Max(int a, int b)
-
Max
public static long Max(long a, long b)
-
Max
public static short Max(short a, short b)
-
Min
public static double Min(double a, double b)
-
Min
public static float Min(float a, float b)
-
Min
public static int Min(int a, int b)
-
Min
public static long Min(long a, long b)
-
Min
public static short Min(short a, short b)
-
MWair
public static final double MWair()
-
Na
public static final double Na()
-
NaUncertainty
public static final double NaUncertainty()
-
NextPrime
public static long NextPrime(long x)
Return next prime number after x, unless x is a prime in which case x is returned.- Parameters:
x- input- Returns:
- next prime number greater/equal x
-
Nint
public static int Nint(double x)
- Parameters:
x- input- Returns:
- Round to nearest integer. Rounds half integers to the nearest even integer.
-
Nint
public static int Nint(float x)
- Parameters:
x- input- Returns:
- Round to nearest integer. Rounds half integers to the nearest
-
Odd
public static boolean Odd(long a)
-
Pi
public static final double Pi()
-
PiOver2
public static final double PiOver2()
-
PiOver4
public static final double PiOver4()
-
Power
public static double Power(double x, double y)
-
Qe
public static final double Qe()
-
QeUncertainty
public static final double QeUncertainty()
-
R
public static final double R()
-
RadToDeg
public static final double RadToDeg()
-
Range
public static double Range(double lb, double ub, double x)
-
Range
public static int Range(int lb, int ub, int x)
-
Range
public static long Range(long lb, long ub, long x)
-
Range
public static short Range(short lb, short ub, short x)
-
Rgair
public static final double Rgair()
-
RUncertainty
public static final double RUncertainty()
-
Sigma
public static final double Sigma()
-
SigmaUncertainty
public static final double SigmaUncertainty()
-
Sign
public static double Sign(double a, double b)
-
Sign
public static float Sign(float a, float b)
-
Sign
public static int Sign(int a, int b)
-
Sign
public static long Sign(long a, long b)
-
Sign
public static short Sign(short a, short b)
-
Sin
public static double Sin(double arg0)
-
SinH
public static double SinH(double arg0)
-
Sqr
public static double Sqr(double x)
-
Sqrt
public static double Sqrt(double x)
-
Sqrt2
public static final double Sqrt2()
-
Tan
public static double Tan(double arg0)
-
TanH
public static double TanH(double arg0)
-
TwoPi
public static final double TwoPi()
-
-