CountIdempotents - Maple Help

Home : Support : Online Help : Mathematics : Algebra : Magma : Magma/CountIdempotents

Magma

 CountIdempotents
 compute the number of idempotents in a magma

 Calling Sequence CountIdempotents( m )

Parameters

 m - Array representing the Cayley table of a finite magma

Description

 • The CountIdempotents command returns the number of idempotent elements in the magma m.

Examples

 > $\mathrm{with}\left(\mathrm{Magma}\right):$
 > $m≔⟨⟨⟨1|2|3⟩,⟨2|3|1⟩,⟨3|1|2⟩⟩⟩$
 ${m}{≔}\left[\begin{array}{ccc}{1}& {2}& {3}\\ {2}& {3}& {1}\\ {3}& {1}& {2}\end{array}\right]$ (1)
 > $\mathrm{CountIdempotents}\left(m\right)$
 ${1}$ (2)

Compatibility

 • The Magma[CountIdempotents] command was introduced in Maple 15.