Constant - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ScientificConstants

  

Constant

  

construct a physical constant object

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Constant( descriptor, opts, 'units' )

Parameters

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

Description

• 

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.

Examples

withScientificConstants

AddConstant,AddElement,AddProperty,Constant,Element,GetConstant,GetConstants,GetElement,GetElements,GetError,GetIsotopes,GetProperties,GetProperty,GetUnit,GetValue,HasConstant,HasElement,HasProperty,ModifyConstant,ModifyElement

(1)

Constantg

Constantg

(2)

GetValue

9.80665

(3)

GetUnit

ms2

(4)

Units:-UsingSystem

SI

(5)

Constantg,units

ConstantSIgms2

(6)

If a system is specified, it is used when displaying and returning the value of the constant.

Constantg,system=FPS

ConstantFPSg

(7)

GetValue

32.17404856

(8)

GetUnit

fts2

(9)

Constantg,system=FPS,units

ConstantFPSgfts2

(10)

The evalf function must be used to return the value of a physical constant object multiplied by a unit object.

evalf

32.17404856fts2

(11)

See Also

Details of Commands for Physical Constants

Initial Physical Constants

ScientificConstants

ScientificConstants[GetConstants]

ScientificConstants[GetError]

ScientificConstants[GetUnit]

ScientificConstants[GetValue]

Units/Systems

Units[Unit]

Units[UsingSystem]