Calculates the Cayley table for an algebraic structure.
The algebraic structure
Optional
The type of operation to calculate the Cayley table for ("add" for additive operations, "mul" for multiplicative operations, defaults to "add")
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₄ Copy
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₄
Calculates the Cayley table for an algebraic structure.