Package de.gsi.math

Class 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 double Abs​(double d)  
      static float Abs​(float d)  
      static int Abs​(int d)  
      static long Abs​(long d)  
      static short Abs​(short d)  
      static double ACos​(double arg0)  
      static double ASin​(double arg0)  
      static double ATan​(double arg0)  
      static double ATan2​(double y, double x)  
      static double C()  
      static double Ccgs()  
      static double Ceil​(double x)  
      static int CeilNint​(double x)  
      static double Cos​(double arg0)  
      static double CosH​(double arg0)  
      static double CUncertainty()  
      static double DegToRad()  
      static double E()  
      static double EulerGamma()  
      static boolean Even​(long a)  
      static double Exp​(double x)  
      static boolean Finite​(double x)  
      static double Floor​(double x)  
      static int FloorNint​(double x)  
      static double G()  
      static double Gcgs()  
      static double GhbarC()  
      static double GhbarCUncertainty()  
      static double Gn()  
      static double GnUncertainty()  
      static double GUncertainty()  
      static double H()  
      static double Hbar()  
      static double Hbarcgs()  
      static double HbarUncertainty()  
      static double HC()  
      static double HCcgs()  
      static double Hcgs()  
      static double HUncertainty()  
      double Hypot​(double x, double y)  
      static long Hypot​(long x, long y)
      some integer math
      static double InvPi()  
      static boolean IsNaN​(double x)  
      static double K()  
      static double Kcgs()  
      static double KUncertainty()  
      static double Ldexp​(double x, int exp)  
      static double Ln10()  
      static double Log​(double x)  
      static double Log10​(double x)  
      static double Log2()  
      static double Log2​(double x)  
      static double LogE()  
      static double Max​(double a, double b)  
      static float Max​(float a, float b)  
      static int Max​(int a, int b)  
      static long Max​(long a, long b)  
      static short Max​(short a, short b)  
      static double Min​(double a, double b)  
      static float Min​(float a, float b)  
      static int Min​(int a, int b)  
      static long Min​(long a, long b)  
      static short Min​(short a, short b)  
      static double MWair()  
      static double Na()  
      static double NaUncertainty()  
      static long NextPrime​(long x)
      Return next prime number after x, unless x is a prime in which case x is returned.
      static int Nint​(double x)  
      static int Nint​(float x)  
      static boolean Odd​(long a)  
      static double Pi()  
      static double PiOver2()  
      static double PiOver4()  
      static double Power​(double x, double y)  
      static double Qe()  
      static double QeUncertainty()  
      static double R()  
      static double RadToDeg()  
      static double Range​(double lb, double ub, double x)  
      static int Range​(int lb, int ub, int x)  
      static long Range​(long lb, long ub, long x)  
      static short Range​(short lb, short ub, short x)  
      static double Rgair()  
      static double RUncertainty()  
      static double Sigma()  
      static double SigmaUncertainty()  
      static double Sign​(double a, double b)  
      static float Sign​(float a, float b)  
      static int Sign​(int a, int b)  
      static long Sign​(long a, long b)  
      static short Sign​(short a, short b)  
      static double Sin​(double arg0)  
      static double SinH​(double arg0)  
      static double Sqr​(double x)  
      static double Sqrt​(double x)  
      static double Sqrt2()  
      static double Tan​(double arg0)  
      static double TanH​(double arg0)  
      static double TwoPi()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TMathConstants

        public TMathConstants()
    • 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 px
        y - 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()