|
JADE v6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dautelle.physics.Constants
This class defines fundamental physical constants in their symbolic form.
The new JDK1.5 (Tiger), lets you avoid qualifying static members with class names, making it easier to use this class. For example:
import com.dautelle.physics.Constants.*; // JDK1.5+ new feature. public class Ellipse { Length a, b; public Area area() { return (Area) π.multiply(a).multiply(b); } }
Fundamental constants may also be defined in non-symbolic form in
the corresponding quantity class (e.g. Velocity.SPEED_OF_LIGHT
for c
or Mass.ELECTRON
for me
).
Note: Constant names use the full range of Unicode characters and are mixed uppercase/lowercase to resemble symbolic names as much as possible
Reference: CODATA Internationally recommended values of the Fundamental Physical Constants (1998)
Field Summary | |
static Quantity |
µ0
Holds the permeability of vacuum or magnetic constant. |
static Quantity |
µB
Holds the Bohr magneton (ePlus·hBar/2me) |
static Quantity |
µN
Holds the nuclear magneton (ePlus·hBar/2mp) |
static Length |
a0
Holds the Bohr radius (α/(4π·Rinf)) |
static Mass |
amu
Holds the unified atomic mass unit (0.001 kg/mol)/N |
static Velocity |
c
Holds the speed of light in vacuum. |
static Quantity |
c_square
Holds c ². |
static Quantity |
Eh
Holds the Hartree energy (2Rinf·h·c) |
static ElectricCharge |
ePlus
Holds the elementary charge (positron charge). |
static Quantity |
F
Holds the Faraday constant (N·ePlus) |
static Scalar |
four_π
Holds 4· π . |
static Acceleration |
g
Holds the standard acceleration of gravity. |
static Quantity |
G
Holds the Newtonian constant of gravitation. |
static ElectricConductance |
G0
Holds the conductance quantum (2ePlus³/h) |
static Quantity |
h
Holds the Planck constant. |
static Scalar |
half_π
Holds π /2. |
static Quantity |
hBar
Holds the Planck constant over 2π. |
static Quantity |
k
Holds the Boltzmann constant. |
static Length |
lP
Holds the Planck length (hBar/(mP·c)) |
static Mass |
mµ
Holds the muon rest mass. |
static Mass |
md
Holds the deuteron rest mass. |
static Mass |
me
Holds the electron rest mass. |
static Mass |
mn
Holds the neutron rest mass. |
static Mass |
mp
Holds the proton rest mass. |
static Mass |
mP
Holds the Planck mass (hBar·c/G)1/2 |
static Quantity |
N
Holds the Avogadro constant. |
static Quantity |
R
Holds the molar gas constant (N·k) |
static Quantity |
Rinf
Holds the Rydberg constant (α³·me·c/2h) |
static Duration |
tP
Holds the Planck time (lP/c) |
static Scalar |
two_π
Holds 2· π . |
static ElectricResistance |
Z0
Holds the characteristic impedance of vacuum (µ0·c). |
static MagneticFlux |
Φ0
Holds the magnetic flux quantum (h/2ePlus) |
static Scalar |
α
Holds the fine structure constant (e²/(4π·ε0·hBar·c)) |
static Quantity |
ε0
Holds the permittivity of vacuum or electric constant (1 / (µ0·c²)) |
static Scalar |
π
Holds the ratio of the circumference of a circle to its diameter. |
static Scalar |
π_square
Holds π ². |
static Quantity |
σ
Holds the Stefan-Boltzmann constant ((π²/60)·k4/(hBar³·c²)) |
Constructor Summary | |
protected |
Constants()
Default constructor (allows for extension). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Acceleration g
Acceleration.GRAVITY
public static final Mass me
Mass.ELECTRON
public static final Mass mp
Mass.PROTON
public static final Mass mn
Mass.NEUTRON
public static final Mass md
Mass.DEUTERON
public static final Mass mµ
Mass.MUON
public static final Scalar π
public static final Scalar half_π
π
/2.
public static final Scalar two_π
π
.
public static final Scalar four_π
π
.
public static final Scalar π_square
π
².
public static final Velocity c
Velocity.SPEED_OF_LIGHT
public static final Quantity c_square
c
².
public static final Quantity k
public static final Quantity h
public static final Quantity hBar
public static final ElectricCharge ePlus
public static final Quantity µ0
public static final Quantity ε0
public static final ElectricResistance Z0
public static final Scalar α
public static final Quantity G
public static final Quantity N
public static final Quantity R
public static final Quantity F
public static final Quantity σ
public static final Mass amu
public static final Quantity Rinf
public static final Length a0
public static final Quantity Eh
public static final MagneticFlux Φ0
public static final ElectricConductance G0
public static final Quantity µB
public static final Quantity µN
public static final Mass mP
public static final Length lP
public static final Duration tP
Constructor Detail |
protected Constants()
|
JADE v6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |