inverse method

Quantity inverse()

Determines the inverse of the quantity represented by this object, creating and returning a Quantity object (which may have different dimensions and therefore be of a different type). This object is not modified.

  • Inversion occurs when a Quantity is divided into 1 and is accomplished by simply inverting the dimensions and dividing the SI MKS value into 1.0.
  • The relative standard uncertainty is unchanged by inversion.

Implementation

Quantity inverse() => dimensions.inverse().toQuantity(valueSI.reciprocal(), null, _ur);