Checks if an element is the identity of an algebraic structure.
The algebraic structure
The element
Optional
The type of identity to check ("add" for additive identity, "mul" for multiplicative identity, defaults to "add")
const Z4 = Chalkboard.abal.group(Chalkboard.abal.Z(4), (a, b) => (a + b) % 4, 0, (a) => (4 - a) % 4);const valid = Chalkboard.abal.isIdentity(Z4, 0); // Returns true Copy
const Z4 = Chalkboard.abal.group(Chalkboard.abal.Z(4), (a, b) => (a + b) % 4, 0, (a) => (4 - a) % 4);const valid = Chalkboard.abal.isIdentity(Z4, 0); // Returns true
Checks if an element is the identity of an algebraic structure.