spis.Util.Phys
Class Phys

java.lang.Object
  extended byspis.Util.Phys.Phys

public final class Phys
extends java.lang.Object

Class Name : Phys
Project ref : SPIS project
File name : Phys.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France http://www.onecert.fr
Status : under development
Creation : 25/08/2003
Modification :

Description : Physical constants (and possibly functions)

Versions and anomalies correction :

Version numberAuthor (name, e-mail) Corrections/Modifications
0.1 JF Roussel, roussel@onecert.frCreation


Version:
0.1
Author:
JF Roussel

Field Summary
static float amu
          1 atomic mass unit
static float amuOver2e
          1 amu / (2 * e)
static float e
          elementary electric charge (positive)
static float eps0
          electric permittivity
static float kB
          Boltzmann constant
static float me
          electron mass
static float pi
          pi, simple precision
static Sqrt sqrt
          sqrt function as a class implementing ScalFunctionOfScal (in constrast to the method sqrt)
static float sqrt2pi
          square root of 2 pi
 
Constructor Summary
Phys()
           
 
Method Summary
static float ch(float x)
          Hyperbolic cosine function in simple precision, which is enough for physicists!
static float cos(float x)
          Cosine function in simple precision, which is enough for physicists!
static float exp(float x)
          Exponential function in simple precision, which is enough for physicists!
static float heaviside(float x)
          Heaviside function
static float log(float x)
          Logarithm function in simple precision, which is enough for physicists!
static float pow(float x, float y)
          Power function in simple precision, which is enough for physicists!
static float sh(float x)
          Hyperbolic sine function in simple precision, which is enough for physicists!
static float sin(float x)
          Sine function in simple precision, which is enough for physicists!
static float sqr(float x)
          Square function in simple precision
static float sqrt(float x)
          Square root function in simple precision, which is enough for physicists!
static float th(float x)
          Hyperbolic tangent function in simple precision, which is enough for physicists!
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

e

public static float e
elementary electric charge (positive)


kB

public static float kB
Boltzmann constant


amu

public static float amu
1 atomic mass unit


me

public static float me
electron mass


eps0

public static float eps0
electric permittivity


sqrt2pi

public static float sqrt2pi
square root of 2 pi


amuOver2e

public static float amuOver2e
1 amu / (2 * e)


pi

public static float pi
pi, simple precision


sqrt

public static Sqrt sqrt
sqrt function as a class implementing ScalFunctionOfScal (in constrast to the method sqrt)

Constructor Detail

Phys

public Phys()
Method Detail

sin

public static float sin(float x)
Sine function in simple precision, which is enough for physicists! (still calls double Math.sin(x), hence not for efficiency purposes, but for convenience)


cos

public static float cos(float x)
Cosine function in simple precision, which is enough for physicists! (still calls double Math.cos(x), hence not for efficiency purposes, but for convenience)


exp

public static float exp(float x)
Exponential function in simple precision, which is enough for physicists! (still calls double Math.exp(x), hence not for efficiency purposes, but for convenience)


log

public static float log(float x)
Logarithm function in simple precision, which is enough for physicists! (still calls double Math.log(x), hence not for efficiency purposes, but for convenience)


sqrt

public static float sqrt(float x)
Square root function in simple precision, which is enough for physicists! (still calls double Math.sqrt(x), hence not for efficiency purposes, but for convenience)


sh

public static float sh(float x)
Hyperbolic sine function in simple precision, which is enough for physicists! (still calls double Math.sh(x), hence not for efficiency purposes, but for convenience)


ch

public static float ch(float x)
Hyperbolic cosine function in simple precision, which is enough for physicists! (still calls double Math.ch(x), hence not for efficiency purposes, but for convenience)


th

public static float th(float x)
Hyperbolic tangent function in simple precision, which is enough for physicists! (still calls double Math.th(x), hence not for efficiency purposes, but for convenience)


pow

public static float pow(float x,
                        float y)
Power function in simple precision, which is enough for physicists! (still calls double Math.pow(x), hence not for efficiency purposes, but for convenience)


sqr

public static float sqr(float x)
Square function in simple precision


heaviside

public static float heaviside(float x)
Heaviside function