subject

Function Name: poly Parameters: list of ints, int Returns: int Description: A polynomial of degree n with coefficients a0,a1,a2,a3, . . . ,an is the function p(x) = (a0 * x0) + (a1 * x1) + (a2 * x2) + (a3 ∗ x3) + . . . + (an ∗ xn) This function can be evaluated at different values of x. For example: If p(x) = 1+2x1+ x2, then p(2) = 1+2 ∗ 2+22 = 9. If p(x) = 1+x2+x4, then p(2) = 21 and p(3) = 91. Write a function poly() that takes as input a list of coefficients a0, a1, a2, a3, . . . , an of a polynomial p(x) and a value x. The function will return poly(x), which is the value of the polynomial when evaluated at x.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:00
The fourth generation of computers emerged between 1970s and 1980s. which technological advancement brought about this generation of computers? which computer architecture was used most in this generation?
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
What is the most popular genre of video games?
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
You know the right answer?
Function Name: poly Parameters: list of ints, int Returns: int Description: A polynomial of degree n...
Questions
question
Mathematics, 13.10.2019 09:30
question
Mathematics, 13.10.2019 09:30
question
Computers and Technology, 13.10.2019 09:30
question
Mathematics, 13.10.2019 09:30
Questions on the website: 13722363