Ask Your Question

Revision history [back]

You can do:

sage: p(x+2)
5*x^2 + 17*x + 15

sage: p(x+2) in R
True

Actually, the following works too:

sage: p.subs(x=x+2)
5*x^2 + 17*x + 15