Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Lazy alternative

sage: P._sympy_().subs(sympy.sympify({ x*y: w }))._sage_()
7*w^2 + 5*w*x + 6*w*y + 4*w + x + 2*y + 3*z

HTH,