ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 17 Jul 2020 00:46:45 +0200Replacing Polynomials with another Polynomialhttps://ask.sagemath.org/question/52518/replacing-polynomials-with-another-polynomial/So I am working with quotient rings so I want to be able to replace terms as there can be many representatives. Let's say I have a polynomial ring of four variables quotiented off by some ideal. Futhermore, we have
x*w "=" x*y+y*z
in the quotient. Is there some replace function that will let me replace polynomial expressions with one another? For example, if I had 3*x*w+x*y, is there something like
replace(3*x*w+x*y, x*w for x*y+y*z)
which should output
4*x*y+3*y*z whatupmattFri, 17 Jul 2020 00:46:45 +0200https://ask.sagemath.org/question/52518/