First time here? Check out the FAQ!
answered 6 years ago
You want to quotient by the two-sided ideal generated by x^2 + 1 and y^2:
x^2 + 1
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.
x
y
Then you get:
sage: x^2 -1 sage: y^2 0 sage: y*x -x*y