Compute with Scientific Constants - Maple Programming Help

Home : Support : Online Help : Tasks : Units, Constants, and Errors : Task/ComputeWithScientificConstants

Compute with Scientific Constants

 Description Compute with scientific constants, such as the speed of light, the Boltzmann constant, and Avogadro's number.

Load the Standard Units package.

 > $\mathrm{with}\left(\mathrm{Units}\left[\mathrm{Standard}\right]\right):$

Enter scientific constants from the set of built-in physical constants.

 > $r:=\mathrm{ScientificConstants}\left[\mathrm{Constant}\right]\left({R},\mathrm{units}\right)$
 ${r}{:=}{{\mathrm{Constant}}}_{{\mathrm{SI}}}{}{(}{R}{)}{}{⟦}\frac{{{m}}^{{2}}{}{\mathrm{kg}}}{{{s}}^{{2}}{}{\mathrm{mol}}{}{K}}{⟧}$ (1)

Enter dimensioned quantities or expressions to be combined with the constants.

 > ${100}⟦{\mathrm{degC}}⟧$
 ${100}{}{⟦}{\mathrm{degC}}{⟧}$ (2)
 > ${2}⟦{\mathrm{mol}}⟧$
 ${2}{}{⟦}{\mathrm{mol}}{⟧}$ (3)

Perform computations with the dimensioned quantities and constants.

 > $\mathrm{PV}:={r}{\cdot }\cdot$
 ${\mathrm{PV}}{:=}{200}{}{{\mathrm{Constant}}}_{{\mathrm{SI}}}{}{(}{R}{)}{}{⟦}{J}{⟧}$ (4)

 > $\mathrm{PVApprox}:=\mathrm{evalf}\left(\mathrm{PV}\right)$
 ${\mathrm{PVApprox}}{:=}{1662.894400}{}{⟦}{J}{⟧}$ (5)