ScientificConstants
Constant
construct a physical constant object
Calling Sequence
Parameters
Description
Examples
Constant( descriptor, opts, 'units' )
descriptor
-
name; full name or symbol of a physical constant in the ScientificConstants package. For a list of physical constants, see Initial Physical Constants
opts
(optional) equation(s) of the form option=value, where option is one of 'system'; specify option(s) for object
'units'
(optional); specify that the object returned is a physical constant object multiplied by a unit object
The Constant( descriptor ) command constructs a physical constant object. The object can be used, for example, to access the value, see GetValue, or the uncertainty in its value, see GetError.
If no options are specified, an object is returned with no system of units. When such an object is evaluated or queried, it returns the physical constant value in the current system of units. For more information, see Units[UsingSystem].
If the 'units' option is specified and the 'system' equation is not specified, the units are selected from the current system of units.
To access the value of an object with units, use the evalf function.
The opts argument can contain one or more of the following equations that set object options.
'system' = symbol
This option controls the system of units associated with the object. If the system specified is a system of units accepted by the Units package, the returned constant object has the system of units specified in index notation. For a list of accepted systems of units, see Units/Systems. When such an object is evaluated or queried, it returns the physical constant value in the indicated system of units.
with⁡ScientificConstants
AddConstant,AddElement,AddProperty,Constant,Element,GetConstant,GetConstants,GetElement,GetElements,GetError,GetIsotopes,GetProperties,GetProperty,GetUnit,GetValue,HasConstant,HasElement,HasProperty,ModifyConstant,ModifyElement
Constant⁡g
GetValue⁡
9.80665
GetUnit⁡
ms2
Units:-UsingSystem⁡
SI
Constant⁡g,units
ConstantSI⁡g⁢ms2
If a system is specified, it is used when displaying and returning the value of the constant.
Constant⁡g,system=FPS
ConstantFPS⁡g
32.17404856
fts2
Constant⁡g,system=FPS,units
ConstantFPS⁡g⁢fts2
The evalf function must be used to return the value of a physical constant object multiplied by a unit object.
evalf⁡
32.17404856⁢fts2
See Also
Details of Commands for Physical Constants
Initial Physical Constants
ScientificConstants[GetConstants]
ScientificConstants[GetError]
ScientificConstants[GetUnit]
ScientificConstants[GetValue]
Units/Systems
Units[Unit]
Units[UsingSystem]
Download Help Document