 eval - Maple Help

Units[Simple]

 eval
 evaluate at a point Calling Sequence

 eval(expr, x = a) $\genfrac{}{}{0}{}{\mathrm{expr}}{\phantom{x=a}}|\genfrac{}{}{0}{}{\phantom{\mathrm{expr}}}{x=a}$ eval(expr, eqns) Parameters

 expr - algebraic expression x - usually name, but may be general expression a - algebraic expression eqns - set or list of equations Description

 • In the Simple Units environment, any verifications of valid dimensions ignore so-called Unit annotations.
 • In the Simple Units environment, the eval function is overloaded to evaluate an expression, taking units into account.
 • Every command in the Simple Units environment that needs to determine whether an expression is valid or not, does so using the Units[TestDimensions] command.
 • For other properties, see the global function eval. Examples

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

The following defines velocity in terms of the acceleration_of_free_fall unit ($\mathrm{gn}$) and the variable height.

Notes:

 – To enter a unit in 2-D Math input, select the unit from the appropriate Units palette. If the unit you want is not there, select $\mathrm{unit}$ and then enter the unit.
 – When you edit a unit, double brackets appear around it.
 > $\mathrm{velocity}≔\mathrm{sqrt}\left(2\mathrm{Unit}\left('\mathrm{gn}'\right)\mathrm{height}\right)$
 ${\mathrm{velocity}}{≔}\sqrt{{2}}{}\sqrt{{\mathrm{height}}}{}⟦\sqrt{{\mathrm{gn}}}⟧$ (1)
 > $\mathrm{eval}\left(\mathrm{velocity},\mathrm{height}=3\mathrm{Unit}\left('\mathrm{ft}'\right)\right)$
 $\frac{\sqrt{{1143}}{}\sqrt{{1250}}{}\sqrt{{196133}}}{{125000}}{}⟦\frac{{m}}{{s}}⟧$ (2)
 > $\mathrm{evalf}\left(\right)$
 ${4.234902776}{}⟦\frac{{m}}{{s}}⟧$ (3)
 > $\mathrm{eval}\left(\mathrm{velocity},\mathrm{height}=0.03\mathrm{Unit}\left('\mathrm{km}'\right)\right)$
 ${0.05477225576}{}\sqrt{{196133}}{}⟦\frac{{m}}{{s}}⟧$ (4)
 > $\mathrm{evalf}\left(\right)$
 ${24.25693715}{}⟦\frac{{m}}{{s}}⟧$ (5)