| Package | Description |
|---|---|
| org.jscience.physics.amount |
Provides support for exact or arbitrary precision measurements.
|
| Modifier and Type | Field and Description |
|---|---|
static Amount<?> |
Constants.µ0
Holds the permeability of vacuum or magnetic constant.
|
static Amount<?> |
Constants.µB
Holds the Bohr magneton (ℏ·e/2me)
|
static Amount<?> |
Constants.µN
Holds the nuclear magneton (ℏ·e/2mp)
|
static Amount<Length> |
Constants.a0
Holds the Bohr radius (α/(4π·Rinf))
|
static Amount<Mass> |
Constants.amu
Holds the unified atomic mass unit (0.001 kg/mol)/N
|
static Amount<Velocity> |
Constants.c
Holds the speed of light in vacuum (exact).
|
static Amount<?> |
Constants.c_square
Holds
Constants.c². |
static Amount<ElectricCharge> |
Constants.e
Holds the elementary charge (positron charge).
|
static Amount<?> |
Constants.Eh
Holds the Hartree energy (2Rinf·h·c)
|
static Amount<?> |
Constants.F
Holds the Faraday constant (N·e)
|
static Amount<Dimensionless> |
Constants.four_π
Holds 4·
Constants.π. |
static Amount<Acceleration> |
Constants.g
Holds the standard acceleration due to gravity (approximately equal
to the acceleration due to gravity on the Earth's surface).
|
static Amount<?> |
Constants.G
Holds the Newtonian constant of gravitation.
|
static Amount<ElectricConductance> |
Constants.G0
Holds the conductance quantum (2e²/h)
|
static Amount<Dimensionless> |
Constants.half_π
Holds
Constants.π/2. |
static Amount<?> |
Constants.k
Holds the Boltzmann constant.
|
static Amount<Length> |
Constants.lP
Holds the Planck length (ℏ/(mP·c))
|
static Amount<Mass> |
Constants.md
Holds the deuteron rest mass.
|
static Amount<Mass> |
Constants.me
Holds the electron rest mass.
|
static Amount<Mass> |
Constants.mn
Holds the neutron rest mass.
|
static Amount<Mass> |
Constants.mp
Holds the proton rest mass.
|
static Amount<Mass> |
Constants.mP
Holds the Planck mass (ℏ·c/G)1/2
|
static Amount<Mass> |
Constants.mμ
Holds the muon rest mass.
|
static Amount<?> |
Constants.N
Holds the Avogadro constant.
|
static Amount<Dimensionless> |
Amount.ONE
Holds a dimensionless measure of one (exact).
|
static Amount<?> |
Constants.R
Holds the molar gas constant (N·k)
|
static Amount<?> |
Constants.Rinf
Holds the Rydberg constant (α²·me·c/2h).
|
static Amount<Duration> |
Constants.tP
Holds the Planck time (lP/c)
|
static Amount<Dimensionless> |
Constants.two_π
Holds 2·
Constants.π. |
static Amount<ElectricResistance> |
Constants.Z0
Holds the characteristic impedance of vacuum (µ0·c).
|
static Amount<Dimensionless> |
Amount.ZERO
Holds a dimensionless measure of zero (exact).
|
static Amount<MagneticFlux> |
Constants.Φ0
Holds the magnetic flux quantum (h/2e)
|
static Amount<Dimensionless> |
Constants.α
Holds the fine structure constant (e²/(2·ε0·c·h))
|
static Amount<?> |
Constants.ε0
Holds the permittivity of vacuum or electric constant (1/(µ0·c²))
|
static Amount<Dimensionless> |
Constants.π
Holds the ratio of the circumference of a circle to its diameter.
|
static Amount<Dimensionless> |
Constants.π_square
Holds
Constants.π². |
static Amount<?> |
Constants.σ
Holds the Stefan-Boltzmann constant ((π²/60)·k4/(ℏ³·c²))
|
static Amount<?> |
Constants.ℎ
Holds the Planck constant.
|
static Amount<?> |
Constants.ℏ
Holds the Planck constant over 2π.
|
| Modifier and Type | Method and Description |
|---|---|
Amount<Q> |
Amount.abs()
Returns the absolute value of this measure.
|
Amount<Q> |
Amount.copy() |
Amount<? extends Quantity> |
Amount.divide(Amount that)
Returns this measure divided by the one specified.
|
Amount<Q> |
Amount.divide(double divisor)
Returns this measure divided by the specified approximate divisor
(dimensionless).
|
Amount<Q> |
Amount.divide(long divisor)
Returns this measure divided by the specified exact divisor
(dimensionless).
|
Amount<? extends Quantity> |
Amount.inverse()
Returns the multiplicative inverse of this measure.
|
Amount<Q> |
Amount.minus(Amount that)
Returns the difference of this measure with the one specified.
|
Amount<Q> |
Amount.opposite()
Returns the opposite of this measure.
|
Amount<Q> |
Amount.plus(Amount that)
Returns the sum of this measure with the one specified.
|
Amount<? extends Quantity> |
Amount.pow(int exp)
Returns this measure raised at the specified exponent.
|
static <Q extends Quantity> |
Amount.rangeOf(double minimum,
double maximum,
Unit<Q> unit)
Returns the measure corresponding to the specified interval stated
in the specified unit.
|
Amount<? extends Quantity> |
Amount.root(int n)
Returns the given root of this measure.
|
Amount<? extends Quantity> |
Amount.sqrt()
Returns the square root of this measure.
|
Amount<? extends Quantity> |
Amount.times(Amount that)
Returns the product of this measure with the one specified.
|
Amount<Q> |
Amount.times(double factor)
Returns this measure scaled by the specified approximate factor
(dimensionless).
|
Amount<Q> |
Amount.times(long factor)
Returns this measure scaled by the specified exact factor
(dimensionless).
|
<R extends Quantity> |
Amount.to(Unit<R> unit)
Returns the measure equivalent to this measure but stated in the
specified unit.
|
static Amount<?> |
Amount.valueOf(CharSequence csq)
Returns the measure represented by the specified character sequence.
|
static <Q extends Quantity> |
Amount.valueOf(double value,
double error,
Unit<Q> unit)
Returns the measure corresponding to the specified approximate value
and measurement error, both stated in the specified unit.
|
static <Q extends Quantity> |
Amount.valueOf(double value,
Unit<Q> unit)
Returns the measure corresponding to an approximate value
(
double) stated in the specified unit;
the precision of the measure is assumed to be the
double precision (64 bits IEEE 754 format). |
static <Q extends Quantity> |
Amount.valueOf(long value,
Unit<Q> unit)
Returns the exact measure corresponding to the value stated in the
specified unit.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Amount.approximates(Amount that)
Indicates if this measure approximates that measure.
|
Amount<? extends Quantity> |
Amount.divide(Amount that)
Returns this measure divided by the one specified.
|
boolean |
Amount.isGreaterThan(Amount<Q> that)
Indicates if this measure is ordered after that measure
(independently of the measure unit).
|
boolean |
Amount.isLargerThan(Amount<Q> that)
Compares this measure with that measure ignoring the sign.
|
boolean |
Amount.isLessThan(Amount<Q> that)
Indicates if this measure is ordered before that measure
(independently of the measure unit).
|
Amount<Q> |
Amount.minus(Amount that)
Returns the difference of this measure with the one specified.
|
Amount<Q> |
Amount.plus(Amount that)
Returns the sum of this measure with the one specified.
|
Amount<? extends Quantity> |
Amount.times(Amount that)
Returns the product of this measure with the one specified.
|