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 05:00
Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive. after the loop terminates, it prints out, on a line by itself and separated by spaces, the sum of all the even integers read, the sum of all the odd integers read, a count of the number of even integers read, and a count of the number of odd integers read, all separated by at least one space. declare any variables that are needed. assume the availability of a variable, stdin, that references a scanner object associated with standard input. that is, stdin = new scanner(system.in); is given.
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
question
Computers and Technology, 23.06.2019 16:10
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
question
Computers and Technology, 24.06.2019 16:50
How many types of string types does python support?
Answers: 1
You know the right answer?
Function Name: poly Parameters: list of ints, int Returns: int Description: A polynomial of degree n...
Questions
question
Mathematics, 10.04.2020 16:32
question
Mathematics, 10.04.2020 16:32
Questions on the website: 13722363