Write a Python code for this:
Complete the below function which takes the coefficients of a polynomial P(x) as a tuple, and a list of values, and returns a list of computed values of P(x). Note that P() can be of any order. For example,
P((2,-1,1), [1,2,3]) shall compute P(x) for x=1,2,3
P(x)=2x^2 -x +1 where x^2 denotes the square of x. Hence, the function must return [2,7,16], because P(1) is 2, P(2) is 7, and P(3) is 16.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here