GAP knows a lot of rings. The ring of integers,
, and the ring of Gaussian integers,
are predefined (Integers
and GaussianIntegers, resp.), and many others
can be easily constructed.
R:= GaussianIntegers;,
Sqrt(-1) in R;, and 1 in R;
then GAP will return true to the last two commands.A ring in GAP need not be commutative