Question: Evaluating polynomials without knowing variables?

Hello! I would like to do something that I really think should be simple. Suppose I have a polynomial P := x^2 + y If I want to evaluate it at the point [1,2], I could say: eval(x=1,y=2,P); But suppose that I didn't know the form the variables in the polynomial would take. Or suppose that I knew they were of the form x1,x2,x3,...,xn. Given a vector of size n, how can I evaluate my polynomial at that point? Thanks! Susan
Please Wait...