Question: Write a program in Python that evaluates polynomials at given points. In other words, given the number x and a list of of coefficients ordered
Write a program in Python that evaluates polynomials at given points. In other words, given the number x and a list of of coefficients ordered from highest to lowest: an, an?1, ... , a2, a1, a0, your program should return the value of the polynomial evaluated at x, i.e. anxn + an?1xn?1 + ... + a2x2 + a1x + a0.
Hint: Power operator in Python is **, as compared to ^ in Matlab.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
