Checks if two elements are inverses of each other in an algebraic structure.

  • Type Parameters

    • T

    Parameters

    • struc: ChalkboardStructure<T>

      The algebraic structure

    • element1: T

      The first element

    • element2: T

      The second element

    • Optionaltype: "add" | "mul" = "add"

      The type of inverse to check ("add" for additive inverse, "mul" for multiplicative inverse, defaults to "add")

    Returns boolean