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, 21.06.2019 22:00
Which is produced by the endocrine system to control how cells and organs function
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
Which spreadsheet operation does a look function perform?
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
George heard about the benefits of a data warehouse. he wants to try implementing one for his organization. however, he is afraid that transferring data to the data warehouse will affect transaction time. which element ensures that transactions are not affected when moving data to a warehouse? when data is transferred to a data warehouse, the a area frees the source system to continue transaction processing.
Answers: 2
You know the right answer?
Function Name: poly Parameters: list of ints, int Returns: int Description: A polynomial of degree n...
Questions
Questions on the website: 13722361