Question: What code do I write in Python for the following? # A is the list containing the coefficients for the polynomial # x is the

What code do I write in Python for the following? # A is the list containing the coefficients for the polynomial
# x is the value at which the polynomial must be evaluated
# Return P(x)
def EvalPoly(A, x):
y =-10_0_0.0
for n in range(len(A)):
y = y +(A[n]* x**n)
return x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!