First time here? Check out the FAQ!
answered 2022-10-18 23:58:03 +0100
You need to define the ideal generated by $g_i$ and then use its .reduce() method on $f$. See the docs.
.reduce()