First time here? Check out the FAQ!
answered 2021-05-26 01:14:29 +0100
I assume f is a and g is x*y - z?
f
a
g
x*y - z
If so, maybe this does what you want?
sage: R.<x, y, z> = QQ['x, y, z'] sage: f = x^2*y - x - z sage: g = x*y - z sage: J = R.ideal(g) sage: r = J.reduce(f) sage: r x*z - x - z