siDerivedQuantity function

bool siDerivedQuantity(
  1. Quantity q
)

Returns whether or not q is a derived quantity (as opposed to one of the seven base SI quantities).

  • If a quantity is not one of the seven base SI quantities, then it is a derived quantity.
  • The seven base SI Quantities are Length, Mass, Duration, Temperature, ElectricCurrent, LuminousIntensity and AmountOfSubstance.
  • The two auxiliary angle-related base quantities (Angle and SolidAngle) will return true as they are not proper base quantities but special cases of Scalar quantities used by convention.

Implementation

bool siDerivedQuantity(Quantity q) => !siBaseQuantity(q);