Sharedsupport / 2015-03-19-090823-I.sagewsOpen in CoCalc
Examples for support purposes...
%gp

ii = Mod(x, x^2+1)

2 + ii
Mod(x, x^2 + 1) Mod(x + 2, x^2 + 1)
%gp

(2.5 + I)^2
5.2500000000000000000000000000000000000 + 5.0000000000000000000000000000000000000*I
s = 2 + QuadraticField(-1).0
pari(s)
Mod(y + 2, y^2 + 1)
(2.5 +I)^2
5.25000000000000 + 5.00000000000000*I