Chalkboard - v3.0.1
    Preparing search index...

    Function isIdentity

    • Checks if an element is the identity of an algebraic structure.

      Type Parameters

      • T

      Parameters

      • struc: ChalkboardStructure<T>

        The algebraic structure

      • element: T

        The element

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

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

      Returns boolean