1 | initial version |
You want to quotient by the two-sided ideal generated by x^2 + 1
and y^2
:
R.<x,y> = P.quo(P*[x^2 + 1, y^2]*P)
Note this re-defines x
and y
once again, as you also did in your code.
Then you get:
sage: x^2
-1
sage: y^2
0
sage: y*x
-x*y