First time here? Check out the FAQ!
answered 2024-06-28 18:29:16 +0100
f % (x*y^2 - z) will do the job:
f % (x*y^2 - z)
K.<x,y,z> = ZZ[] f = x*y^2 + x + y + z print( f % (x*y^2 - z) )