verify/units
verify the equality of two expressions with units
Calling Sequence
Parameters
Description
Examples
verify(expr1, expr2, units)
verify(expr1, expr2, units(ver))
expr1, expr2
-
anything, assumed to be of type algebraic
ver
(optional) verification to be used
The verify(expr1, expr2, units) and verify(expr1, expr2, units(ver)) calling sequences check if both expr1 and expr2 are multiplied by Unit objects with the same dimension, in which case, each object is converted to the default system of units, the units are removed, and the results are compared with evalb or the verification ver if specified.
If this conversion cannot be done, no change is made to the arguments expr1 or expr2 before they are compared.
If either expr1 or expr2 is not of type algebraic, then false is returned.
with⁡Units:
Automatically loading the Units[Simple] subpackage
verify⁡3⁢Unit⁡ft,Unit⁡m,less_than
FAIL
verify⁡3⁢Unit⁡ft,Unit⁡m,units⁡less_than
true
verify⁡10⁢Unit⁡lb⁢fts,Unit⁡tonne⁢mh,units⁡less_than
false
See Also
convert/system
convert/units
Units
Units[Unit]
verify
Download Help Document