quantity_ext library

Extends the core library with non-SI units, constants, unit synonyms to enable terse constructors and expressions, and auxiliary functions.

Classes

MutableQuantity
MutableQuantity supports updates to its value, dimensions and uncertainty. Changes are broadcast over the onChange stream.

Constants

alphaParticleMass → const Mass
The rest mass of a helium nucleus.
angstromStar → const Length
Often used to represent the wavelengths of X rays and the distances between atoms in crystals.
atomicMass → const Mass
One twelfth of the mass of a carbon-12 atom in its nuclear and electronic ground state.
bohrRadius → const Length
The mean radius of the orbit of an electron around the nucleus of a hydrogen atom at its ground state.
boltzmannConstant → const Entropy
The Boltzmann constant is a physical constant that relates the average relative kinetic energy of particles in a gas with the temperature of the gas.
characteristicImpedanceOfVacuum → const Resistance
Relates the magnitudes of the electric and magnetic fields of electromagnetic radiation travelling through free space.
classicalElectronRadius → const Length
The classical electron radius is a combination of fundamental physical quantities that define a length scale for problems involving an electron interacting with electromagnetic radiation.
comptonWavelength → const Length
The wavelength of a photon whose energy is the same as the mass energy equivalent of that particle.
conductanceQuantum → const Conductance
The quantized unit of electrical conductance. It appears when measuring the conductance of a quantum point contact, and, more generally, is a key component of Landauer formula which relates the electrical conductance of a quantum conductor to its quantum properties.
cos0 → const double
The cosine of a ninety degree angle (1).
cos60 → const double
The cosine of a sixty degree angle (0.5).
cos90 → const double
The cosine of a ninety degree angle (1).
deuteronMass → const Mass
The mass of a stationary deuteron.
electronGFactor → const Scalar
Electron g factor (ge).
electronMass → const Mass
The mass of a stationary electron.
elementaryCharge → const Charge
The electric charge carried by a single proton.
fineStructureConstant → const Scalar
Fine structure constant (alpha).
fiveNinths → const double
A ratio used in the conversion between metric temperature scales and Fahrenheit.
hartreeEnergy → const Energy
The Hartree atomic unit of energy is the energy for the separation of a molecule to nuclei and electrons.
hBar → const AngularMomentum
The Planck constant divided by 2 PI (a.k.a., 'h-bar' or 'reduced Planck constant').
helionMass → const Mass
The mass of a stationary helion.
lengthZero → const Length
A constant representing zero length.
magneticFluxQuantum → const MagneticFlux
The magnetic flux quantum constant is a combination of two other physical constants: the Planck constant h and the electron charge e. Its value is, therefore, the same for any superconductor.
muonGFactor → const Scalar
Muon g factor (gn).
muonMass → const Mass
The mass of a stationary muon particle.
naught → const Scalar
A synonym for zero.
neutronGFactor → const Scalar
Neutron g factor (gn).
neutronMass → const Mass
The mass of a stationary neutron.
planckConstant → const AngularMomentum
The Planck constant.
planckLength → const Length
The threshold length at which classical ideas about gravity and space-time cease to be valid and quantum effects dominate.
planckMass → const Mass
The unit of mass in the system of natural units known as Planck units. It is approximately 0.02 milligrams.
planckTemperature → const Temperature
Contemporary models of physical cosmology postulate that the highest possible temperature is the Planck temperature.
planckTime → const Time
The time required for light to travel in a vacuum a distance of one Planck length.
protonGFactor → const Scalar
Proton g factor (gp).
protonMass → const Mass
The mass of a stationary proton.
sackurTetrode100kPa → const Scalar
Sackur-Tetrode constant at 1 K and 100 kPa ('S0/R').
sackurTetrodeStdAtm → const Scalar
Sackur-Tetrode constant at 1 K and 101.325 kPa ('S0/R').
scalarZero → const Scalar
Zero, as a Scalar.
sigma0 → const Area
A synonym for the thomsonCrossSection.
sin0 → const double
The sine of a zero degree angle (0).
sin30 → const double
The sine of a thirty degree angle (0.5).
sin90 → const double
The sine of a ninety degree angle (1).
solarLuminosity → const Power
The solar luminosity constant is the radiant flux (power emitted in the form of photons) emitted by the Sun (a typical value; the Sun's output actually varies slightly over time).
speedOfLightVacuum → const Speed
Speed of light in a vacuum.
speedOfSoundAir0C → const Speed
Speed of sound in air at 0 deg C.
tan0 → const double
The tangent of a zero degree angle (0).
tan45 → const double
The tangent of a forty five degree angle (1).
tau → const double
The "circle constant", equal to two pi.
tauComptonWavelength → const Length
The tau Compton wavelength.
tauMass → const Mass
The mass of a stationary tau particle.
thomsonCrossSection → const Area
Helpful for describing the scattering of photons when the energy of each individual photon is much smaller than the rest energy of the electron.
vacuumElectricPermittivity → const Permittivity
A constant of proportionality that exists between electric displacement and electric field intensity.
vacuumMagneticPermeability → const Permeability
The magnetic permeability in a classical vacuum.
vonKlitzingConstant → const Resistance
Relates Planck's constant and the charge of the electron.
weakMixingAngle → const Scalar
Weak mixing angle.
Z0 → const Resistance
A synonym for characteristicImpedanceOfVacuum.
zilch → const Scalar
A synonym for zero.

Properties

abamperes CurrentUnits
Abamperes as a unit.
final
abcoulombs ChargeUnits
A synonym for dekacoulombs.
final
abfarads CapacitanceUnits
A unit representing one gigafarad.
final
abhenries InductanceUnits
Abhenries is a synonym for nanohenries.
getter/setter pair
abmho ConductanceUnits
Equivalent to a billion siemens (or mhos).
final
abvolts ElectricPotentialDifferenceUnits
The unit of electromotive force (EMF) or potential difference in the CGS (centimeter/gram/second) electromagnetic system of units. When an EMF of 1 abV exists between two points, then one erg of energy is needed to move one abcoulomb (1 abC) of charge carriers between those two points.
getter/setter pair
acreFoot VolumeUnits
Acre foot as a unit.
getter/setter pair
acres AreaUnits
An acre is about three-quarters of the size of an American football field.
final
aeons TimeUnits
A unit of one billion years.
final
ampereHours ChargeUnits
Ampere hours as a unit.
final
amperes CurrentUnits
The standard SI unit.
final
amps CurrentUnits
A synonym for amperes.
final
angle0 Angle
A zero degree angle.
final
angle180 Angle
A one hundred eighty degree angle.
final
angle270 Angle
A two hundred seventy degree angle.
final
angle30 Angle
A thirty degree angle.
final
angle360 Angle
A three hundred sixty degree angle.
final
angle45 Angle
A forty five degree angle.
final
angle60 Angle
A sixty degree angle.
final
angle90 Angle
A ninety degree angle.
final
anglePi Angle
A one hundred eighty degree angle.
final
angleTau Angle
A three hundred sixty degree angle.
final
angstromStars LengthUnits
A non-standard unit of length.
final
angularMils AngleUnits
One angular mil is 0.05625 of a degree, exactly.
final
ares AreaUnits
Accepted for use with the SI, subject to further review. Equals one square dekameter, or 100 square meters.
final
astronomicalUnits LengthUnits
The mean distance from the center of the earth to the center of the sun.
final
atmospheres PressureUnits
Standard atmospheres as a unit.
getter/setter pair
atmospheresTechnical PressureUnits
Technical atmospheres as a unit.
getter/setter pair
attometers LengthUnits
A unit of 10^-18 meters.
final
attoseconds TimeUnits
10^-18 of a second.
final
B TimeInstantUnits
Besselian - Replaced by Julian system, but still of occasional use
final
bakersDozen ScalarUnits
A baker's dozen is 13. One extra donut. Thank you.
final
barns AreaUnits
Accepted for use with the SI, subject to further review. Equals 100 square femtometers, or 1.0e-28 square meters.
final
barrels VolumeUnits
Barrels as a unit.
getter/setter pair
barrelsPetroleum VolumeUnits
Barrels petroleum as a unit.
getter/setter pair
bars PressureUnits
Shorthand bars unit.
getter/setter pair
baryes PressureUnits
Baryes as a unit.
getter/setter pair
billionEur ScalarUnits
The European variant of one billion (10^12) as a unit.
final
billionthsUS ScalarUnits
One billionth (US: 10^-9) as a unit.
final
billionUS ScalarUnits
One billion (US: 10^9) as a unit.
final
bits InformationUnits
The standard SI unit.
final
boardFeet VolumeUnits
Board feet as a unit.
getter/setter pair
boltzmannUnit EntropyUnits
Boltzmann constant as a unit.
final
btu39 EnergyUnits
39 degree Fahrenheit BTUs as a unit.
final
btu60 EnergyUnits
60 degree Fahrenheit BTUs as a unit.
final
btuInternationalTable EnergyUnits
International Table BTUs as a unit.
final
btuMean EnergyUnits
Mean BTUs as a unit.
final
btuThermo EnergyUnits
Thermochemical BTUs as a unit.
final
btuThermsPerHour PowerUnits
Square degrees as a unit.
getter/setter pair
btuThermsPerSecond PowerUnits
Thermochemical BTUs per second as a unit.
getter/setter pair
bushels VolumeUnits
Bushels as a unit.
getter/setter pair
bytes InformationUnits
Units of 8 bits.
final
cables LengthUnits
A non-standard unit of length.
final
calibers LengthUnits
A non-standard unit of length.
final
calories15 EnergyUnits
15 degree Celsius calories as a unit.
final
calories20 EnergyUnits
20 degree Celsius calories as a unit.
final
caloriesInternationalTable EnergyUnits
International Table calories as a unit.
final
caloriesKgInternationalTable EnergyUnits
International Table kilogram calories as a unit.
final
caloriesKgMean EnergyUnits
Mean kilogram calories as a unit.
final
caloriesKgThermo EnergyUnits
Thermochemical kilogram calories as a unit.
final
caloriesMean EnergyUnits
Mean calories as a unit.
final
caloriesThermo EnergyUnits
Thermochemical calories as a unit.
final
caloriesThermoPerSecond PowerUnits
Thermochemical calories as a unit.
getter/setter pair
candelas LuminousIntensityUnits
The standard SI unit.
final
caratsMetric MassUnits
Metric carats as a unit.
final
centimeters LengthUnits
A unit of one hundredth of a meter.
final
centiseconds TimeUnits
A hundredth of a second.
final
centistokes KinematicViscosityUnits
Centistokes as a unit.
getter/setter pair
chainsEngineer LengthUnits
A non-standard unit of length.
final
chainsSurveyor LengthUnits
A non-standard unit of length.
final
circles AngleUnits
Synonymous with revolutions.
final
circularMils AreaUnits
Equal to the area of a circle with a diameter of one mil (one thousandth of an inch). It is often used for representing the area of a wire's circular cross section.
final
clausius EntropyUnits
The erg per clausius unit of entropy.
final
cmMercury0 PressureUnits
Centimeters of mercury at 0 degrees Celsius.
getter/setter pair
cmWater4 PressureUnits
Centimeters of water at 4 degrees Celsius.
getter/setter pair
cords VolumeUnits
Cords as a unit.
getter/setter pair
cos30 double
The cosine of a thirty degree angle.
final
cos45 double
The cosine of a forty five degree angle.
final
coulombs ChargeUnits
The standard SI unit.
final
cubicCentimeters VolumeUnits
Cubic centimeters as a unit.
getter/setter pair
cubicFeet VolumeUnits
Barrels as a unit.
getter/setter pair
cubicInches VolumeUnits
Cubic inches as a unit.
getter/setter pair
cubicMeters VolumeUnits
The standard SI unit.
getter/setter pair
cubicMetersPerSecond VolumeFlowRateUnits
The standard SI unit, tersely.
getter/setter pair
cubicParsecs VolumeUnits
Cubic parsecs as a unit.
getter/setter pair
cubicYards VolumeUnits
Cubic yards as a unit.
getter/setter pair
cubits LengthUnits
A non-standard unit of length.
final
cumecs VolumeFlowRateUnits
Shorthand synonym for standard SI unit.
getter/setter pair
cups VolumeUnits
Cups as a unit.
getter/setter pair
cycles AngleUnits
Synonymous with revolutions.
final
days TimeUnits
Accepted for use with the SI.
final
daysMeanSolar TimeUnits
Accepted for use with the SI.
final
daysSidereal TimeUnits
A sidereal day is the time between two consecutive transits of the First Point of Aries. It represents the time taken by the Earth to rotate on its axis relative to the stars, and is almost four minutes shorter than the solar day because of the Earth's orbital motion.
final
decillionEur ScalarUnits
The European variant of one decillion (10^60) as a unit.
final
decillionUS ScalarUnits
One decillion (US: 10^33) as a unit.
final
decimeters LengthUnits
A unit of one tenth of a meter.
final
deciseconds TimeUnits
A tenth of a second.
final
deg AngleUnits
Synonymous with degrees.
final
degF TemperatureIntervalUnits
A synonym for degreesFahrenheit.
final
degK TemperatureIntervalUnits
A synonym for degrees Kelvin.
final
degR TemperatureIntervalUnits
A synonym for degreesRankine.
final
degrees AngleUnits
A terse version of Angle.degrees.
final
degreesCelsius TemperatureUnits
Degrees in the Celsius scale.
final
degreesFahrenheit TemperatureIntervalUnits
Degrees in the Fahrenheit scale.
final
degreesPerSecond AngularSpeedUnits
Accepted for use with the SI.
final
degreesRankine TemperatureIntervalUnits
Degrees in the Rankine scale.
final
dekameters LengthUnits
A unit of ten meters.
final
dekaseconds TimeUnits
Ten seconds.
final
dozen ScalarUnits
A dozen is 12.
final
drams VolumeUnits
Drams as a unit.
getter/setter pair
dramsApothecary MassUnits
Apothecary drams as a unit.
final
dramsAvoirdupois MassUnits
Avoirdupois drams as a unit.
final
duotrigintillion ScalarUnits
One duotrigintillion (10^99) as a unit.
final
dynes ForceUnits
Dynes as a unit.
getter/setter pair
electronVolts EnergyUnits
Accepted for use with the SI.
final
emuCapacitance CapacitanceUnits
Electromagnetic unit (emu), the capacity of a circuit component to store charge.
final
emuOfInductance InductanceUnits
EMU of inductance is a synonym for nanohenries.
getter/setter pair
emuPotential ElectricPotentialDifferenceUnits
Synonymous with abvolts.
getter/setter pair
eons TimeUnits
A synonym for aeons.
final
ergPerKelvin EntropyUnits
The erg per kelvin unit of entropy.
final
ergs EnergyUnits
Ergs as a unit.
final
ergsPerSecond PowerUnits
Ergs per second as a unit.
getter/setter pair
esuCapacitance CapacitanceUnits
A synonym for statfarads.
final
esuOfInductance InductanceUnits
ESU of inductance as a unit.
getter/setter pair
esuPotential ElectricPotentialDifferenceUnits
Synonymous with statvolts.
getter/setter pair
ET TimeInstantUnits
Ephemeris Time (ET) is the same as TDT: ET = TDT = TT = TAI + 32.184 s. Ephemeris Time was renamed Terrestrial Dynamical Time in 1984 (when Barycentric Dynamical Time was also introduced)
final
exabytes InformationUnits
10^18 bytes. Use Information.exbibytes (EiB) instead for the binary interpretation of EB (2^60 bytes).
final
exameters LengthUnits
A unit of 10^18 meters.
final
exaseconds TimeUnits
10^18 seconds.
final
Fahrenheit TemperatureUnits
Fahrenheit scale units.
final
faradaysC12 ChargeUnits
Carbon 12 faradays as a unit.
final
faradaysChemical ChargeUnits
Chemical faradays as a unit.
final
faradaysPhysical ChargeUnits
Physical faradays as a unit.
final
farads CapacitanceUnits
The standard SI unit.
final
faradsPerMeter PermittivityUnits
The standard SI unit.
getter/setter pair
fathoms LengthUnits
A non-standard unit of length.
final
feet LengthUnits
A non-standard unit of length.
final
feetPerHour SpeedUnits
Feet per hour as a unit.
getter/setter pair
feetPerMinute SpeedUnits
Feet per minute as a unit.
getter/setter pair
feetPerSecond SpeedUnits
Feet per second as a unit.
getter/setter pair
feetUsSurvey LengthUnits
A non-standard unit of length.
final
femtometers LengthUnits
A unit of 10^-15 meters.
final
femtoseconds TimeUnits
10^-15 of a second.
final
fermis LengthUnits
A non-standard unit of length.
final
fluidOunces VolumeUnits
Fluid ounces as a unit.
getter/setter pair
fluidOuncesUK VolumeUnits
U.K. fluid ounces as a unit.
getter/setter pair
fluxUnits SpectralIrradianceUnits
Synonymous with janskys.
final
footCandles IlluminanceUnits
Foot candles as a unit.
getter/setter pair
footPerSecondSquared AccelerationUnits
A commonly used English unit of acceleration.
final
footPoundals EnergyUnits
Foot-poundals as a unit.
final
footPoundsForce EnergyUnits
Foot pounds force as a unit.
final
forceDeCheval PowerUnits
Force de cheval as a unit.
getter/setter pair
ftWater39 PressureUnits
Feet of water at 39.2 degrees Fahrenheit.
getter/setter pair
furlongs LengthUnits
A non-standard unit of length.
final
g MassUnits
Gram unit synonym.
final
galileos AccelerationUnits
Defined as 0.01 meter per second squared.
final
gallonsUKLiquid VolumeUnits
U.K. liquid gallons as a unit.
getter/setter pair
gallonsUSDry VolumeUnits
U.S. dry gallons as a unit.
getter/setter pair
gallonsUSLiquid VolumeUnits
U.S. liquid gallons as a unit.
getter/setter pair
gals AccelerationUnits
Synonymous with galileos.
final
gammas MassUnits
Microgram units.
final
gauss MagneticFluxDensityUnits
One gauss is one ten-thousandth of a tesla.
getter/setter pair
gees AccelerationUnits
A unit based on the acceleration experienced by a free-falling body at the Earth's surface.
final
gigabytes InformationUnits
10^9 bytes. Use Information.gibibytes (GiB) instead for the binary interpretation of GB (2^30 bytes).
final
gigameters LengthUnits
A unit of one billion meters.
final
gigaseconds TimeUnits
A billion seconds.
final
gilberts CurrentUnits
Gilberts as a unit.
final
gillsUK VolumeUnits
U.K. gills as a unit.
getter/setter pair
gillsUS VolumeUnits
U.S. gills as a unit.
getter/setter pair
gons AngleUnits
Synonym for grads.
final
googol Scalar
googol (10^100), arbitrary precision.
getter/setter pair
googols ScalarUnits
One googol (10^100) as a unit.
final
GPST TimeInstantUnits
GPS Satellite Time (GPST): GPST = TAI - 19 s
final
grades AngleUnits
Synonym for grads.
final
grads AngleUnits
One grad is 0.9 of a degree, exactly.
final
grains MassUnits
Grains as a unit.
final
grams MassUnits
A unit of one gram.
final
gramsPerCubicCentimeter MassDensityUnits
Grams per cubic centimeter as a unit.
getter/setter pair
greatGross ScalarUnits
A great gross is 1728.
final
gross ScalarUnits
A gross is 144.
final
halfDozen ScalarUnits
A half-dozen is 6.
final
hands LengthUnits
A non-standard unit of length.
final
hBarUnits AngularMomentumUnits
The Planck constant divided by 2 PI (a.k.a., 'h-bar') as units.
final
hectares AreaUnits
Accepted for use with the SI, subject to further review. Equals 1 square hectometer, or 10 000 square meters.
final
hectometers LengthUnits
A unit of one hundred meters.
final
hectoseconds TimeUnits
A hundred seconds.
final
hemispheres SolidAngleUnits
Hemispheres as a unit.
final
henries InductanceUnits
The standard SI unit.
getter/setter pair
henriesPerMeter PermeabilityUnits
The standard SI unit.
getter/setter pair
hogsheads VolumeUnits
Hogsheads as a unit.
getter/setter pair
horsepower550 PowerUnits
Horsepower (550 ft lbs/s) as a unit.
getter/setter pair
horsepowerBoiler PowerUnits
Horsepower (boiler) as a unit.
getter/setter pair
horsepowerElectric PowerUnits
Horsepower (electric) as a unit.
getter/setter pair
horsepowerMetric PowerUnits
Horsepower (metric) as a unit.
getter/setter pair
horsepowerWater PowerUnits
Horsepower (water) as a unit.
getter/setter pair
hours TimeUnits
Accepted for use with the SI.
final
hoursMeanSolar TimeUnits
Accepted for use with the SI.
final
hoursSidereal TimeUnits
A unit of one hour in the sidereal day.
final
hoursTime AngleUnits
Based on Earth's rotation (approximately 15 degrees).
final
hundred ScalarUnits
100 as a unit.
final
hundredths ScalarUnits
One hundredth as a unit.
final
hundredweightLong MassUnits
Long hundredweight as a unit.
final
hundredweightShort MassUnits
Short hundredweight as a unit.
final
inches LengthUnits
A non-standard unit of length.
final
inchesPerSecond SpeedUnits
Inches per second as a unit.
getter/setter pair
inchPerSecondSquared AccelerationUnits
A commonly used English unit of acceleration.
final
inMercury32 PressureUnits
Inches of mercury at 32 degrees Fahrenheit.
getter/setter pair
inWater39 PressureUnits
Inches of water at 39.2 degrees Fahrenheit.
getter/setter pair
J2000 TimeInstant
J2000.0 as defined by the IAU: Julian date: 2000 Jan 1d 12h UT in the TDT time scale
final
janskys SpectralIrradianceUnits
A non-SI unit of spectral irradiance used especially in radio astronomy.
final
JD_TAI TimeInstantUnits
Julian Date in the TAI scale
final
JD_TCB TimeInstantUnits
Julian Date in the TCB scale
final
JD_TCG TimeInstantUnits
Julian Date in the TCG scale
final
JD_TDB TimeInstantUnits
Julian Date in the TDB (TB) scale
final
JD_TDT TimeInstantUnits
Julian Date in the TDT (TT) scale
final
JD_UT1 TimeInstantUnits
Julian Date in the UT1 scale
final
JD_UTC TimeInstantUnits
Julian Date in the UTC scale
final
joules EnergyUnits
The standard SI unit.
final
jouleSecond AngularMomentumUnits
The standard SI unit.
final
joulesPerKelvin EntropyUnits
The standard SI unit.
final
joulesPerKilogram SpecificEnergyUnits
The standard SI unit.
getter/setter pair
kelvins TemperatureUnits
The standard SI unit.
final
kg MassUnits
Kilogram unit synonym.
final
kgfSecondSquaredMeter MassUnits
Kilogram force second square meter as a unit.
final
kilobytes InformationUnits
1000 bytes (8000 bits). Use Information.kibibytes (kiB) instead for the binary interpretation of kB (1024 bytes).
final
kilocaloriesThermo EnergyUnits
A synonym for thermochemical kilogram calories.
final
kilograms MassUnits
The standard SI unit.
final
kilogramsForce ForceUnits
Kilograms force as a unit.
getter/setter pair
kilogramsPerCubicMeter MassDensityUnits
The standard SI unit.
getter/setter pair
kilojoules EnergyUnits
Kilojoules as a unit.
final
kilometers LengthUnits
A unit of one thousand meters.
final
kilometersPerHour SpeedUnits
Kilometers per hour as a unit.
getter/setter pair
kilomoles AmountOfSubstanceUnits
A unit of one thousand moles.
final
kiloponds ForceUnits
A synonym for kilograms force.
getter/setter pair
kiloseconds TimeUnits
A thousand seconds.
final
kilowattHours EnergyUnits
Kilowatt-hours as a unit.
final
kilowatts PowerUnits
Shorthand kilowatts as a unit.
getter/setter pair
kips ForceUnits
Kips as a unit.
getter/setter pair
knots SpeedUnits
Knots, tersely.
getter/setter pair
langleys EnergyFluxUnits
Langleys as a unit.
final
leaguesNautical LengthUnits
A non-standard unit of length.
final
leaguesStatute LengthUnits
A non-standard unit of length.
final
leaguesUkNautical LengthUnits
A non-standard unit of length.
final
lightYears LengthUnits
The distance light travels in one year.
final
linksEngineer LengthUnits
A non-standard unit of length.
final
linksSurveyor LengthUnits
A non-standard unit of length.
final
liters VolumeUnits
A terse alternative to Volume.liters.
getter/setter pair
litersPerSecond VolumeFlowRateUnits
0.001 cubic meter per second.
getter/setter pair
lusecs VolumeFlowRateUnits
Shorthand synonym for liters per second.
getter/setter pair
lux IlluminanceUnits
The standard SI unit.
getter/setter pair
magFieldAtomicUnit MagneticFluxDensityUnits
Magnetic field atomic unit.
getter/setter pair
magneticGammas MagneticFluxDensityUnits
A synonym for nanoteslas.
getter/setter pair
maxwells MagneticFluxUnits
A maxwell is one one-hundred-millionth of a weber.
getter/setter pair
megabytes InformationUnits
10^6 bytes. Use Information.mebibytes (MiB) instead for the binary interpretation of MB (2^20 bytes).
final
megameters LengthUnits
A unit of one million meters.
final
megaseconds TimeUnits
A million seconds.
final
meterPerSecondSquared AccelerationUnits
A synonym for the standard SI-MKS unit of acceleration.
final
meters LengthUnits
The standard SI unit.
final
metersPerSecond SpeedUnits
The standard SI unit.
getter/setter pair
metersSquaredPerSecond KinematicViscosityUnits
The standard SI unit.
getter/setter pair
metricTons MassUnits
Accepted for use with the SI.
final
mg MassUnits
Milligram unit synonym.
final
mho ConductanceUnits
Synonymous with Siemens.
final
micrometers LengthUnits
A unit of one millionth of a meter.
final
microns LengthUnits
A synonym for micrometers.
final
microseconds TimeUnits
A millionth of a second.
final
miles LengthUnits
A non-standard unit of length.
final
milesPerHour SpeedUnits
Miles per hour as a unit.
getter/setter pair
milesPerMinute SpeedUnits
Miles per minute as a unit.
getter/setter pair
milesPerSecond SpeedUnits
Miles per second as a unit.
getter/setter pair
millibars PressureUnits
A millibar as a unit.
getter/setter pair
milligrams MassUnits
A unit of one thousandth of a gram.
final
millimeters LengthUnits
A unit of one thousandth of a meter.
final
million ScalarUnits
One million as a unit.
final
millionths ScalarUnits
One millionth as a unit.
final
milliradian AngleUnits
A unit of one thousandth of a radian.
final
milliseconds TimeUnits
A thousandth of a second.
final
millisteradians SolidAngleUnits
Millisteradians as a unit.
final
mils LengthUnits
A non-standard unit of length.
final
minersInches VolumeFlowRateUnits
The miner's inch as a unit.
getter/setter pair
minutes TimeUnits
Accepted for use with the SI.
final
minutesArc AngleUnits
A terse version of Angle.minutesArc.
final
minutesMeanSolar TimeUnits
Accepted for use with the SI.
final
minutesSidereal TimeUnits
A unit of one minute in the sidereal day.
final
minutesTime AngleUnits
Based on Earth's rotation.
final
MJD_TAI TimeInstantUnits
Modified Julian Date in the TAI scale
final
MJD_TCB TimeInstantUnits
Modified Julian Date in the TCB scale
final
MJD_TCG TimeInstantUnits
Modified Julian Date in the TCG scale
final
MJD_TDB TimeInstantUnits
Modified Julian Date in the TDB scale
final
MJD_TDT TimeInstantUnits
Modified Julian Date in the TDT scale
final
MJD_UT1 TimeInstantUnits
Modified Julian Date in the UT1 scale
final
MJD_UTC TimeInstantUnits
Modified Julian Date in the UTC scale
final
moles AmountOfSubstanceUnits
A synonym for the SI-MKS base unit of amount of substance.
final
musecs VolumeFlowRateUnits
Shorthand synonym for standard SI unit.
getter/setter pair
myriad ScalarUnits
A myriad is ten thousand.
final
nanometers LengthUnits
A unit of one billionth of a meter.
final
nanoseconds TimeUnits
A billionth of a second.
final
nauticalMilesUk LengthUnits
A non-standard unit of length.
final
newtons ForceUnits
The standard SI unit.
final
newtonsPerAmpereSquared PermeabilityUnits
Newtons per ampere as a unit.
getter/setter pair
newtonsPerSquareMeter PressureUnits
A synonym for pascals.
getter/setter pair
nonillionEur ScalarUnits
The European variant of one nonillion (10^54) as a unit.
final
nonillionUS ScalarUnits
One nonillion (US: 10^30) as a unit.
final
NTP TimeInstantUnits
Network Time Protocol (NTP) - NTP is offset from the UTC time scale, with its epoch at 1 Jan 1900 0h
final
octants SolidAngleUnits
One eighth (1/8) of a sphere (a spherical right triangle).
final
octillionEur ScalarUnits
The European variant of one octillion (10^48) as a unit.
final
octillionUS ScalarUnits
One octillion (US: 10^27) as a unit.
final
ohms ResistanceUnits
The standard SI unit.
getter/setter pair
one ScalarUnits
The standard SI unit.
final
ouncesApothecary MassUnits
Apothecary ounces as a unit.
final
ouncesAvoirdupois MassUnits
Avoirdupois ounces as a unit.
final
ouncesForceAvoirdupois ForceUnits
Avoirdupois ounces force as a unit.
getter/setter pair
paces LengthUnits
A non-standard unit of length.
final
pair ScalarUnits
A pair is 2.
final
parsecs LengthUnits
A non-standard unit of length.
final
pascals PressureUnits
The standard SI unit.
getter/setter pair
pecks VolumeUnits
Pecks as a unit.
getter/setter pair
pennyweightTroy MassUnits
Troy pennyweight as a unit.
final
percent ScalarUnits
Synonymous with Scalar.percent.
final
perches LengthUnits
A non-standard unit of length.
final
petabytes InformationUnits
10^15 bytes. Use Information.pebibytes (PiB) instead for the binary interpretation of PB (2^50 bytes).
final
petameters LengthUnits
A unit of 10^15 meters.
final
petaseconds TimeUnits
10^15 seconds.
final
phots IlluminanceUnits
Phots as a unit.
getter/setter pair
picas LengthUnits
A non-standard unit of length.
final
picometers LengthUnits
A unit of 10^-12 meters.
final
picoseconds TimeUnits
10^-12 of a second.
final
pintsDry VolumeUnits
U.S. dry pints as a unit.
getter/setter pair
pintsLiquid VolumeUnits
U.S. liquid pints as a unit.
getter/setter pair
planckUnits AngularMomentumUnits
The Planck constant as units.
final
points LengthUnits
A non-standard unit of length.
final
poles LengthUnits
A non-standard unit of length.
final
poundals ForceUnits
Poundals as a unit.
getter/setter pair
poundsApothecary MassUnits
Apothecary pounds as a unit.
final
poundsAvoirdupois MassUnits
Avoirdupois pounds as a unit.
final
poundsForceAvoirdupois ForceUnits
Avoirdupois pounds force as a unit.
getter/setter pair
poundsPerCubicFoot MassDensityUnits
Pounds per cubic foot as a unit.
getter/setter pair
poundsPerCubicInch MassDensityUnits
Pounds per cubic inch as a unit.
getter/setter pair
psi PressureUnits
Pounds per square inch as a unit.
getter/setter pair
quadrants AngleUnits
Represents a quarter circle of ninety degrees.
final
quadrillionEur ScalarUnits
The European variant of one quadrillion (10^24) as a unit.
final
quadrillionUS ScalarUnits
One quadrillion (US: 10^15) as a unit.
final
quartsDry VolumeUnits
U.S. dry quarts as a unit.
getter/setter pair
quartsLiquid VolumeUnits
U.S. liquid quarts as a unit.
getter/setter pair
quintals MassUnits
A quintal is 100 kilograms.
final
quintillionEur ScalarUnits
The European variant of one quintillion (10^30) as a unit.
final
quintillionUS ScalarUnits
One quintillion (US: 10^18) as a unit.
final
rad AngleUnits
Synonymous with radians.
final
radians AngleUnits
A terse version of Angle.radians.
final
radiansPerSecond AngularSpeedUnits
The standard SI unit.
final
Rankine TemperatureUnits
Rankine scale units.
final
referenceSound PowerUnits
A power commonly used as the reference power for calculation of sound power levels.
getter/setter pair
referenceSoundAir PressureUnits
A pressure often used as the reference pressure for calculation of sound pressure levels.
getter/setter pair
referenceSoundWater PressureUnits
A pressure commonly used as the reference pressure for calculation of sound pressure levels.
getter/setter pair
registryTons VolumeUnits
Registry tons as a unit.
getter/setter pair
revolutions AngleUnits
Represents a full circle of two pi radians.
final
revolutionsPerMinute AngularSpeedUnits
Rotation frequency.
final
rods LengthUnits
A non-standard unit of length.
final
rpm AngularSpeedUnits
A synonym for revolutionsPerMinute.
final
score ScalarUnits
A score is 20. Four score is 80. More poetic than just saying eighty.
final
scruples MassUnits
Scruples as a unit.
final
seconds TimeUnits
The standard SI unit.
final
secondsArc AngleUnits
A terse version of Angle.secondsArc.
final
secondsSidereal TimeUnits
A unit of one second in the sidereal day.
final
secondsTime AngleUnits
Based on Earth's rotation.
final
sections AreaUnits
Synonymous with squareMiles.
final
semicircles AngleUnits
Represents a half circle of one hundred eighty degrees (pi radians).
final
septillionEur ScalarUnits
The European variant of one billion (10^42) as a unit.
final
septillionUS ScalarUnits
One septillion (US: 10^24) as a unit.
final
sextillionEur ScalarUnits
The European variant of one sextillion (10^36) as a unit.
final
sextillionUS ScalarUnits
One sextillion (US: 10^21) as a unit.
final
signs AngleUnits
A sign unit is a little more than half a radian.
final
sin45 double
The sine of a forty five degree angle.
final
sin60 double
The sine of a sixty degree angle.
final
skeins LengthUnits
A non-standard unit of length.
final
slugs MassUnits
Slugs as a unit.
final
slugsPerCubicFoot MassDensityUnits
Slugs per cubic foot as a unit.
getter/setter pair
spans LengthUnits
A non-standard unit of length.
final
spats SolidAngleUnits
Spats as a unit.
final
speedOfLightSquared SpecificEnergyUnits
The square of the speed of light in a vacuum.
getter/setter pair
speedOfLightUnits SpeedUnits
The speed of light as a unit.
getter/setter pair
spheres SolidAngleUnits
Spheres as a unit.
final
sphericalRightTriangles SolidAngleUnits
Same as octants.
final
squareArcMinutes SolidAngleUnits
Square arc minutes as a unit.
final
squareArcSeconds SolidAngleUnits
Square arc seconds as a unit.
final
squareCentimeters AreaUnits
An area unit equivalent to a square with sides having a length of one centimeter.
final
squareDegrees SolidAngleUnits
Square degrees as a unit.
final
squareFeet AreaUnits
An area unit equivalent to a square with sides having a length of one foot.
final
squareFeetPerSecond KinematicViscosityUnits
Square feet per second as a unit.
getter/setter pair
squareInches AreaUnits
An area unit equivalent to a square with sides having a length of one inch.
final
squareKilometers AreaUnits
An area unit equivalent to a square with sides having a length of one kilometer.
final
squareMeters AreaUnits
The standard SI unit.
final
squareMetersPerSquareSecond SpecificEnergyUnits
Square meters per second as a unit.
getter/setter pair
squareMiles AreaUnits
An area unit equivalent to a square with sides having a length of one mile.
final
squarePerches AreaUnits
Synonymous with squareRods.
final
squarePoles AreaUnits
Synonymous with squareRods.
final
squareRods AreaUnits
An area unit equivalent to a square with sides having a length of one rod.
final
squareYards AreaUnits
An area unit equivalent to a square with sides having a length of one yard.
final
standardAccelerationOfGravity AccelerationUnits
The more formal name for gees.
final
statamperes CurrentUnits
Statamperes as a unit.
final
statcoulombs ChargeUnits
Statcoulombs as a unit.
final
statfarads CapacitanceUnits
The statfarad is the standard unit of capacitance in the cgs (centimeter/gram/second) system.
final
statmhos ConductanceUnits
A non-SI unit of electrical conductance.
final
statvolts ElectricPotentialDifferenceUnits
A useful unit for electromagnetism because, in a vacuum, an electric field of one statvolt/cm has the same energy density as a magnetic field of one gauss. Likewise, a plane wave propagating in a vacuum has perpendicular electric and magnetic fields such that for every gauss of magnetic field intensity there is one statvolt/cm of electric field intensity.
getter/setter pair
steradians SolidAngleUnits
The standard SI unit.
final
steres VolumeUnits
A synonym for cubic meters.
getter/setter pair
stokes KinematicViscosityUnits
Stokes as a unit.
getter/setter pair
system TimeInstantUnits
Measures time since 1 Jan 1970 0h 0m 0s, which is the System time defined by many computer operating systems
final
tablespoons VolumeUnits
Tablespoons as a unit.
getter/setter pair
TAI TimeInstantUnits
International Atomic Time scale units
final
tan30 double
The tangent of a thirty degree angle.
final
tan60 double
The tangent of a sixty degree angle.
final
TB TimeInstantUnits
Barycentric Time (TB); same as TDB: TT = TDB
final
TCB TimeInstantUnits
Barycentric Coordinate Time (TCB): TCB = TDB + (1.550505e-8)(JD - 2443144.5)(86400)
final
TCG TimeInstantUnits
Geocentric Coordinate Time (TCG): TCG = TDT + (6.969291e-10)(JD - 2443144.5)(86400)
final
TDB TimeInstantUnits
Barycentric Dynamical Time (TDB): TDB varies from TDT by periodic variations
final
TDT TimeInstantUnits
Terrestrial Dynamical Time (TDT): TDT = TAI + 32.184 s
final
teaspoons VolumeUnits
Teaspoons as a unit.
getter/setter pair
tenths ScalarUnits
One tenth as a unit.
final
terabytes InformationUnits
10^12 bytes. Use Information.tebibytes (TiB) instead for the binary interpretation of TB (2^40 bytes).
final
terameters LengthUnits
A unit of 10^12 meters.
final
teraseconds TimeUnits
10^12 seconds.
final
teslas MagneticFluxDensityUnits
The standard SI unit.
getter/setter pair
thermalCoulomb EntropyUnits
Entropy as a 'charge'; identical to joulesPerKelvin.
final
therms EnergyUnits
Therms as a unit.
final
thousand ScalarUnits
1000 as a unit.
final
thousandths ScalarUnits
One thousandth as a unit.
final
tonnes MassUnits
Accepted for use with the SI.
final
tons EnergyUnits
Tons of TNT equivalent as a unit.
final
tonsAssay MassUnits
Assay tons as a unit.
final
tonsLong MassUnits
Long tons as a unit.
final
tonsShort MassUnits
Short tons as a unit.
final
torrs PressureUnits
Torrs as a unit.
getter/setter pair
townships AreaUnits
An area unit used in US surveyors' measures equalling 36 square miles.
final
trillionEur ScalarUnits
The European variant of one trillion (10^18) as a unit.
final
trillionthsUS ScalarUnits
One trillionth (US: 10^-12) as a unit.
final
trillionUS ScalarUnits
One trillion (US: 10^12) as a unit.
final
TT TimeInstantUnits
Terrestrial Time (TT) is the same as TDT: TDT = TT = TAI + 32.184 s
final
unifiedAtomicMassUnits MassUnits
Accepted for use with the SI.
final
unitPoles MagneticFluxUnits
Unit poles as a unit.
getter/setter pair
unitPolesDensity MagneticFluxDensityUnits
Unit poles density as a unit.
getter/setter pair
UT1 TimeInstantUnits
Universal Time (UT1): UT1 = TDT - Delta T
final
UT2 TimeInstantUnits
Universal Time (UT2): UT2 = UT1 + 0.022 sin(2PIt) - 0.012 cos(2PIt) - 0.006 sin(4PIt) + 0.007 cos(4PIt), where t = the date in Besellian years
final
UTC TimeInstantUnits
Coordinated Universal Time (differs from TAI by a number of leap seconds)
final
volts ElectricPotentialDifferenceUnits
The standard SI unit.
getter/setter pair
wattHour EnergyUnits
Watt-hour as a unit.
final
watts PowerUnits
The standard SI unit.
getter/setter pair
wattSecond EnergyUnits
Watt-second as a unit.
final
wattsPerSquareMeter EnergyFluxUnits
The standard SI unit.
final
webers MagneticFluxUnits
The standard SI unit.
getter/setter pair
xUnits LengthUnits
A non-standard unit of length.
final
yards LengthUnits
A non-standard unit of length.
final
yearsCalendar TimeUnits
Calendar years as a unit.
final
yearsJulian TimeUnits
Defined as exactly 365.25 days of 86400 SI seconds each. The length of the Julian year is the average length of the year in the Julian calendar that was used in Western societies until some centuries ago, and from which the unit is named.
final
yearsSidereal TimeUnits
Sidereal years as a unit.
final
yearsTropical TimeUnits
Tropical years as a unit.
final
yoctometers LengthUnits
A unit of 10^-24 meters.
final
yoctoseconds TimeUnits
10^-24 of a second.
final
yottameters LengthUnits
A unit of 10^24 meters.
final
yottaseconds TimeUnits
10^24 seconds.
final
zeptometers LengthUnits
A unit of 10^-21 meters.
final
zeptoseconds TimeUnits
10^-21 of a second.
final
zettameters LengthUnits
A unit of 10^21 meters.
final
zettaseconds TimeUnits
10^21 seconds.
final

Functions

angleFromHourMinSec(int hour, int minute, double second, [double uncert = 0]) Angle
Constructs an angle from hours, minutes and seconds of time (as opposed to arc).
cosecant(Angle a) double
The ratio of the hypotenuse to the side opposite an acute angle; the reciprocal of sine.
cotangent(Angle a) double
The ratio of the side (other than the hypotenuse) adjacent to a particular acute angle to the side opposite the angle.
degToRad(num deg) double
Converts degrees to radians.
radToDeg(num rad) double
Convert radians to degrees.
secant(Angle a) double
The ratio of the hypotenuse to the shorter side adjacent to an acute angle; the reciprocal of a cosine.
toMutable(Quantity q) MutableQuantity
Create a MutableQuantity with the same value, dimensions and uncertainty as q.