Upgrading from:

PhysicalConstants`

As of Version 9, the new units framework can be used via Quantity in place of the PhysicalConstants`package.

The PhysicalConstants` package provided a selection of commonly used values for units or special numbers, found in various scientific fields. The units framework provided by Quantity replaces these completely.

Version 8.0 << PhysicalConstants`
SpeedOfLight

PhysicalConstants`Version 9
AccelerationDueToGravityQuantity["StandardAccelerationOfGravity"]
AgeOfUniverseQuantity["UniverseAge"]
AvogadroConstantQuantity["AvogadroConstant"]
BohrRadiusQuantity["BohrRadius"]
BoltzmannConstantQuantity["BoltzmannConstant"]
ClassicalElectronRadiusQuantity["ClassicalElectronRadius"]
DeuteronMagneticMomentQuantity["DeuteronMagneticMoment"]
DeuteronMassQuantity["DeuteronMass"]
EarthMassQuantity["EarthMass"]
EarthRadiusQuantity["EarthEquatorialRadius"]
ElectronChargeQuantity["ElementaryCharge"]
ElectronComptonWavelengthQuantity["ElectronComptonWavelength"]
ElectronGFactorQuantity["ElectronGFactor"]
ElectronMagneticMomentQuantity["ElectronMagneticMoment"]
ElectronMassQuantity["ElectronMass"]
FaradayConstantQuantity["FaradayConstant"]
FineStructureConstantQuantity["FineStructureConstant"]
GalacticUnitQuantity["GalacticUnit"]
GravitationalConstantQuantity["GravitationalConstant"]
HubbleConstantQuantity["HubbleConstant"]
MagneticFluxQuantumQuantity["MagneticFluxQuantum"]
MolarGasConstantQuantity["MolarGasConstant"]
MolarVolumeQuantity["IdealGasMolarVolume"]
MuonGFactorQuantity["MuonGFactor"]
MuonMagneticMomentQuantity["MuonMagneticMoment"]
MuonMassQuantity["MuonMass"]
NeutronComptonWavelengthQuantity["NeutronComptonWavelength"]
NeutronMagneticMomentQuantity["NeutronMagneticMoment"]
NeutronMassQuantity["NeutronMass"]
PlanckConstantQuantity["PlanckConstant"]
PlanckConstantReducedQuantity["ReducedPlanckConstant"]
PlanckMassQuantity["PlanckMass"]
ProtonComptonWavelengthQuantity["ProtonComptonWavelength"]
ProtonMagneticMomentQuantity["ProtonMagneticMoment"]
ProtonMassQuantity["ProtonMass"]
QuantizedHallConductanceQuantity["QuantizedHallConductance"]
RydbergConstantQuantity["RydbergConstant"]
SackurTetrodeConstantQuantity["SackurTetrodeConstant"]
SolarConstantQuantity["SolarConstant"]
SolarLuminosityQuantity["SolarLuminosity"]
SolarRadiusQuantity["SolarRadius"]
SolarSchwarzschildRadiusQuantity["SolarSchwarzschildRadius"]
SpeedOfLightQuantity["SpeedOfLight"]
SpeedOfSoundQuantity["SpeedOfSound"]
StefanConstantQuantity["StefanBoltzmannConstant"]
ThomsonCrossSectionQuantity["ThomsonCrossSection"]
VacuumPermeabilityQuantity["MagneticConstant"]
VacuumPermittivityQuantity["ElectricConstant"]
WeakMixingAngleQuantity["WeakMixingAngleConstant"]

All the previous constants are given as fundamental units in the new system. Functions such as UnitConvert can be used to find other representations of the values.

The previous names are canonical, but other forms can be found by using Quantity. There are equivalents for all the contents of the PhysicalConstants` package, and many more beyond that.

PhysicalConstants`Units for use with UnitConvert
AccelerationDueToGravity"Meters"/"Seconds"^2
AgeOfUniverse"Seconds"
AvogadroConstant1/"Moles"
BohrRadius"Meters"
BoltzmannConstant"Joules"/"Kelvins"
ClassicalElectronRadius"Meters"
CosmicBackgroundTemperature"Kelvins"
DeuteronMagneticMoment"Joules"/"Teslas"
DeuteronMass"Kilograms"
EarthMass"Kilograms"
EarthRadius"Meters"
ElectronCharge"Coulombs"
ElectronComptonWavelength"Meters"
ElectronGFactor1
ElectronMagneticMoment"Joules"/"Teslas"
ElectronMass"Kilograms"
FaradayConstant"Coulombs"/"Moles"
FineStructureConstant1
GalacticUnit"Meters"
GravitationalConstant("Meters"^2 "Newtons")/"Kilograms"^2
HubbleConstant1/"Seconds"
IcePoint"Kelvins"
MagneticFluxQuantum"Webers"
MolarGasConstant"Joules"/("Kelvins" "Moles")
MolarVolume"Meters"^3/"Moles"
MuonGFactor1
MuonMagneticMoment"Joules"/"Teslas"
MuonMass"Kilograms"
NeutronComptonWavelength"Meters"
NeutronMagneticMoment"Joules"/"Teslas"
NeutronMass"Kilograms"
PlanckConstant"Joules" "Seconds"
PlanckConstantReduced"Joules" "Seconds"
PlanckMass"Kilograms"
ProtonComptonWavelength"Meters"
ProtonMagneticMoment"Joules"/"Teslas"
ProtonMass"Kilograms"
QuantizedHallConductance"Amperes"/"Volts"
RydbergConstant1/"Meters"
SackurTetrodeConstant1
SolarConstant"Watts"/"Meters"^2
SolarLuminosity"Watts"
SolarRadius"Meters"
SolarSchwarzschildRadius"Meters"
SpeedOfLight"Meters"/"Seconds"
SpeedOfSound"Meters"/"Seconds"
StefanConstant"Watts"/("Kelvins"^4 "Meters"^2)
ThomsonCrossSection"Meters"^2
VacuumPermeability("Seconds" "Volts")/("Amperes" "Meters")
VacuumPermittivity("Amperes" "Seconds")/("Meters" "Volts")
WeakMixingAngle1

Generally, UnitConvert can be used to convert the constants to equivalent numerical values. The previous table is provided to allow derivation of numeric values and units that parallel the Version 9 package.

Version 8.0 << PhysicalConstants`
MolarGasConstant

Note especially that the units in the kernel are expressed as strings in plural form.

Unitless forms can be derived with 1 as the unit.

Some of the values from the previous conversions will be slightly different from the old package. In some cases, this is the result of updated scientific research. (The Hubble constant can be considered an example of this.) In others, a slightly different standard was used for deriving the value, as in the case of the speed of sound in air. Finally, the so-called solar constant (and associated solar luminosity) provides an exception, as it is not in fact constant, and the current value more correctly reflects the solar cycle.