Essentially my issue is that, in the algorithm im working on, I construct a polynomial by taking factors out of a list and multiplying them. For example, i have
f=(1 + t + 3 t^2 + t^3) (6 + 3 t + 2 t^2 + t^4)
How can I now replace t with say, a number or another polynomial? And how can I do this for any polynomial f?