Units[Standard]
eval
evaluate at a point
Calling Sequence
Parameters
Description
Examples
eval(expr, x = a)
exprx=a|exprx=a
eval(expr, eqns)
expr
-
algebraic expression
x
usually name, but may be general expression
a
eqns
set or list of equations
In the Standard Units environment, the eval function is overloaded to evaluate an expression after removing the units, and then combine the result with the units.
For other properties, see the global function eval.
with⁡UnitsStandard:
The following defines velocity in terms of the acceleration_of_free_fall unit (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 unit and then enter the unit.
When you edit a unit, double brackets appear around it.
velocity≔sqrt⁡2⁢Unit⁡gn⁢height
velocity≔2⁢height⁢gn
eval⁡velocity,height=3⁢Unit⁡ft
2⁢3⁢381⁢1961335000⁢ms
evalf⁡
4.234902778⁢ms
eval⁡velocity,height=0.03⁢Unit⁡km
0.01732050808⁢2⁢196133⁢5⁢ms
24.25693715⁢ms
See Also
evalf
Units
Units of Acceleration
Units/Standard
Download Help Document