Chalkboard - v3.0.4
    Preparing search index...

    Function Cayley

    • Calculates the Cayley table for an algebraic structure.

      Parameters

      • struc: ChalkboardStructure<number>

        The algebraic structure

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

        The type of operation to calculate the Cayley table for ("add" for additive operations, "mul" for multiplicative operations, defaults to "add")

      Returns ChalkboardMatrix

      const Z4 = Chalkboard.abal.group(Chalkboard.abal.Z(4), (a, b) => (a + b) % 4, 0, (a) => (4 - a) % 4);
      const table = Chalkboard.abal.Cayley(Z4); // Returns the addition table of Z₄