General functions for semigroups. Black box style, the element(s) and the operation need to be supplied.
General functions for semigroups. Black box style, the element(s) and the operation need to be supplied.
(commutative? sgp mul)
Brute-force (but lazy) checking of commutativity of a semigroup.
Brute-force (but lazy) checking of commutativity of a semigroup.
(index-period x mul)
The index-period pair of integers in a vector for a given semigroup element x with multiplication mul.
The index-period pair of integers in a vector for a given semigroup element x with multiplication mul.
(k-nilpotent? k sgp mul)
Checking for k-nilpotency. Assuming the semigroup is k-nilpotent, we can take the k-th power of any element. Then we a do a brute-force (but lazy) check of all k-element selections.
Checking for k-nilpotency. Assuming the semigroup is k-nilpotent, we can take the k-th power of any element. Then we a do a brute-force (but lazy) check of all k-element selections.
(sgp-by-gens gens mul)
Computes all elements of a semigroup generated by gens combined by the given binary operation mul.
Computes all elements of a semigroup generated by gens combined by the given binary operation mul.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close