Defines the class for physical base dimensions.

Hierarchy

Constructors

Properties

isBase: boolean

Determine if this dimension is a "simple" base dimension.

Methods

  • Combine two compounds by applying a factor on the second compound.

    Parameters

    • other: Dimension.Dimension

      Another compount

    • factor: number

      The factor to use on the other compound

    Returns Exponents<Dimension.Name>

    The combination of the two compounds

  • Determine the exponent on the specified unit or dimension.

    Parameters

    • exponent: Dimension.Name

      The unit or dimension to retrieve the exponent from

    Returns number

    The exponent

  • Generate an array of nonzero exponent units or dimensions.

    Returns Dimension.Name[]

    An array of nonzero exponent units or dimensions

  • Determine whether two compounds contain the same units or dimensions.

    Parameters

    Returns boolean

    A boolean

  • Multiply this compound by another after applying an exponent on the second compound.

    Parameters

    • other: Dimension.Dimension

      Another compound fraction

    • exponent: number

      The exponent to apply on the other compound

    Returns Dimension.Dimension

    The product of the two compounds

  • Generate valid LaTeX code representing this compound.

    Returns string

    A valid LaTeX equation

MMNEPVFCICPMFPCPTTAAATR