CompatibleUnitQ

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

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (3)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]=
Introduced in 2012
(9.0)
Translate this page: