WOLFRAM NOTEBOOK

Quantities & Units

Out[]=
The Wolfram Language
Quantity
supports all the SI prefixes and units necessary for representing chemical quantities.
Atoms & molecules:
{Quantity["Atoms"],Quantity["Molecules"]}
Out[]=
{
1
atom
,
1
molecule
}
Mass:
{Quantity["AtomicMassUnits"],Quantity["Dalton"],Quantity["Kilograms"],Quantity["Grams"],Quantity["Micrograms"]}
Out[]=
1
u
,
1
Da
,
1
kg
,
1
g
,
1
μg
Amount:
{Quantity["Moles"],Quantity["Millimoles"]}
Out[]=
{
1
mol
,
1
mmol
}
Volume:
{Quantity["Kiloliters"],Quantity["Liters"],Quantity["Milliliters"]}
Out[]=
{
1
kL
,
1
L
,
1
mL
}
Concentration:
{Quantity["Molar"],Quantity["Millimolar"],Quantity["Molal"],Quantity["MassPercent"],Quantity["MolePercent"],Quantity["VolumePercent"],Quantity["PartsPerMillion"],Quantity["PartsPerBillion"]}
Out[]=
1
M
,
1
mM
,
1
molal
,
1
mass%
,
1
mol%
,
1
vol%
,
1
ppm
,
1
ppb
Temperature:
{Quantity["Celsius"],Quantity["Kelvins"]}
Out[]=
{
1
°C
,
1
K
}
Pressure:
{Quantity["Pascals"],Quantity["Bar"],Quantity["Atomosphere"]}
Out[]=
{
1
Pa
,
1
bar
,
1
atm
}
Use
KnownUnitQ
to determine if a prefix or unit is valid.
{KnownUnitQ["Milli"],KnownUnitQ["Pounds"],KnownUnitQ["Beakers"]}
Out[]=
{True,True,False}
The magnitude of a quantity can be extracted with
QuantityMagnitude
.
QuantityMagnitude[Quantity[Around[15.3,0.1],"Milliliters"]]
Out[]=
15.30
±
0.10
The units of a quantity can be extracted with
QuantityUnit
.
QuantityUnit[Quantity[Around[15.3,0.1],"Milliliters"]]
Out[]=
Milliliters
Use
Information
to access all the details of a
Quantity
object.
Information[Quantity[Around[13.6,0.1],"Milliliters"]]
Out[]=
Quantity
Magnitude
13.60
±
0.10
Unit
Milliliters
Unit Dimensions
{{LengthUnit,3}}
SI Base Units
3
Meters
Out[]=
Close
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.