Expand description
Finite-sample algebraic law helpers.
Functionsยง
- has_
inverses - Returns whether every value in
elementshas a two-sided inverse with respect toidentityandoperation. - identity_
element - Returns a two-sided identity element for
operation, if one exists inelements. - is_
abelian_ group - Returns whether
elementswithoperationform an abelian group. - is_
associative - Returns whether
operationis associative overelements. - is_
closed_ under - Returns whether applying
operationto any pair of values inelementsyields another member ofelements. - is_
commutative - Returns whether
operationis commutative overelements. - is_
distributive_ over - Returns whether
multiplydistributes overaddfrom both sides onelements. - is_
group - Returns whether
elementswithoperationform a group. - is_
monoid - Returns whether
elementswithoperationform a monoid. - is_ring
- Returns whether
elementswithaddandmultiplyform a ring.