Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 8 Online
OpenStudy (anonymous):

Can someone lend me a hand with problem set 2 question 1? I just don't know where to start..

OpenStudy (e.mccormick):

This? "Implement the evaluate_poly function. This function evaluates a polynomial function for the given x value. It takes in a tuple of numbers poly and a number x. By number, we mean that x and each element of poly is a float. evaluate_poly takes the polynomial represented by poly and computes its value at x. It returns this value as a float." It is basically making a type of calculator.

OpenStudy (anonymous):

Think of each term in the polynomial, poly, separately. They are each made up of a coefficient (the float value) multiplied times the variable x(the argument) to the power of a number(the float's index). Each term need to be calculated and then added to the sum.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!