|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
CompatibleUnitQ
CompatibleUnitQ[quantity1, quantity2]
tests whether
and
have compatible units.
DetailsDetails
- CompatibleUnitQ returns False unless the Quantity elements have the same UnitDimensions.
ExamplesExamplesopen allclose all
Basic Examples (2)Basic Examples (2)
Test whether a sequence of quantities is compatible:
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |
If non-Quantity elements are present, CompatibleUnitQ returns false:
| In[1]:= |
| Out[1]= |
New in 9.0
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
