answered 12 years ago
A ring is a set with multiplication and addition, for example QQ = rational numbers and ZZ = integers.
QQ
ZZ
You can construct quaternions as follows:
sage: i,j,k = QuaternionAlgebra(1,1).gens() sage: j*k -i