CompatibleUnitQ

CompatibleUnitQ[quantity1,quantity2]

returns True if quantity1 and quantity2 have compatible units, and False otherwise.

Details

Examples

open allclose all

Basic Examples  (3)

Test whether two Quantity objects are compatible:

In[1]:=
Click for copyable input
Out[1]=

Test whether two units are compatible:

In[1]:=
Click for copyable input
Out[1]=

Test compatibility of a sequence of quantities and units:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Properties & Relations  (6)

See Also

Quantity  UnitDimensions  UnitConvert  KnownUnitQ  MixedUnit  DatedUnit  IndependentUnit

Tutorials

Introduced in 2012
(9.0)