add a physical constant definition
AddConstant( full_name, value_eqn, opts )
AddConstant( full_name, derive_eqn, derive_opts )
name; full name of the physical constant. It cannot match the name or symbol of a physical constant in the ScientificConstants package (unless the 'check=false' option is given)
equation of the form 'value'=value_obj that defines the value of the nonderived physical constant; value_obj must be of type constant or contain a Constant() object such that it evaluates to type constant
(optional) equation(s) of the form option=value, where option is one of 'check', 'symbol',
equation of the form 'derive'=derive_obj that defines the derived physical constant; derive_obj must be of type algebraic and contain at least one symbol or name of a physical constant
(optional) equation(s) of the form option=value, where option is one of 'check' or 'symbol'; specify the derived physical constant definition
The AddConstant( full_name, value_eqn, opts ) command adds a nonderived physical constant to the ScientificConstants package for the current session.
The AddConstant( full_name, derive_eqn, derive_opts ) command adds a derived physical constant to the ScientificConstants package for the current session.
To add a constant to all future Maple sessions, add the AddConstant command to your Maple initialization file. For more information, see Create Maple Initialization File.
After the physical constant has been added, the full name or symbol can be used to access the constant.
In the derive_eqn equation of the form 'derive'=derive_obj, the derive_obj expression is typically a product of rational powers of numerics, Maple constants, and physical constant identifiers (for example, symbols). Exceptions are the abs function, and a sum with dimensionally consistent summands.
The opts and derive_opts arguments can contain one or more of the following equations that specify the physical constant.
'check' = true or false
When 'check'=true, AddConstant checks whether the given name or symbol matches names or symbols of physical constants in the package. If it does, an error is returned. The default value of 'check' is true. When 'check'=false, AddConstant attempts to remove from the package any conflicting physical constants. This is unsuccessful if any of the conflicting constants are currently used in the definition of any derived physical constants.
'symbol' = symbol
This option defines the symbol of the physical constant. It cannot match the name or symbol of a physical constant in the ScientificConstants package (unless the 'check=false' option is given, see below).
If a physical constant definition does not include a 'symbol' equation, the full name is also assigned to the symbol.
The opts argument can also contain one or more of the following equations that specify the nonderived physical constant.
'uncertainty' = uncertainty_obj
This option defines the precision to which the physical constant's value is known. The uncertainty_obj option must be of type constant (or be so after Constant() objects evaluate) or a list of the form uncer,uncertainty_opt where uncertainty_opt is 'relative' or 'uld' and uncer is of type constant (or is after Constant() objects evaluate).
If no uncertainty option uncertainty_opt is included, the value represents the absolute uncertainty of the physical constant. That is, the value is measured in units determined by the 'units' option.
If uncertainty_obj is of the form uncer,relative, uncer is the relative uncertainty in the physical constant's value. The quantity uncer*value_obj is the absolute uncertainty of the physical constant.
If uncertainty_obj is of the form uncer,uld, uncer is the uncertainty in units in the least digit in the physical constant's value. The quantity uncer⁢SFloatExponent⁡value_obj is the absolute uncertainty of the physical constant. This form of uncertainty cannot be used with a non-float value_obj.
If the 'uncertainty' option is not specified, the uncertainty is undefined.
'units' = units_obj
This option defines the units in which the value, and possibly uncertainty, are measured. The units_obj option can be an expression that Units[Unit] interprets as a unit or a Unit() standard form. For more information, see Units.
If 'units'=units_obj is not specified, the units is unity, that is, one (1). This means that the physical constant is dimensionless.
Create Maple Initialization File
Details of Commands for Physical Constants
Initial Physical Constants
Download Help Document
What kind of issue would you like to report? (Optional)