KnownUnitQ
KnownUnitQ[expr]
returns True if expr is a canonical unit, and False otherwise.
Examples
open allclose allScope (6)
Units represented by a single string:
KnownUnitQ returns True for valid IndependentUnit specifications:
It returns False for invalid IndependentUnit specifications:
MixedUnit specifications of compatible units:
Incompatible units do not produce a valid MixedUnit specification:
DatedUnit specifications:
Properties & Relations (2)
KnownUnitQ has attribute HoldAll:
A MixedUnit specification is valid if it contains compatible units:
Possible Issues (1)
Quantity can interpret a non-canonical unit, converting it to its canonical form:
KnownUnitQ does not accept non-canonical units:
Text
Wolfram Research (2012), KnownUnitQ, Wolfram Language function, https://reference.wolfram.com/language/ref/KnownUnitQ.html.
CMS
Wolfram Language. 2012. "KnownUnitQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/KnownUnitQ.html.
APA
Wolfram Language. (2012). KnownUnitQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/KnownUnitQ.html