Computers and Technology

Apolynomial of degree n with coefficients a0, a1, a2, an is the function p(x) = a0 + a1x + a2x 2 + a3 โˆ— x 3 + + an โˆ— x n this function can be evaluated at different values of x. for example, if p(x) = 1 + 2x+ x 2, then p(2) = 1 + 2 โˆ— 2 + 22 = 9. if p(x) = 1 + x 2 + x 4, then p(2) = 21 and p(3) = 91. write a function poly() that takes as input a list of coefficients a0, a1, a2, an of a polynomial p(x) and a value x. the function will return p(x), which is the value of the polynomial when evaluated at x. note that the usage below is for the three examples shown. > > > poly([1, 2, 1], 2) 9 > > > poly([1, 0, 1, 0, 1], 2) 21 > > > poly([1, 0, 1, 0, 1], 3) 91

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:10, nawaphon1395
Is the following an example of social media viral marketing? indicate your response by selecting yes or no. when you sign onto your favorite social networking website, you get messages from friends who have seen a television show they thought was a "must see! "
Answers: 1
image
Computers and Technology, 23.06.2019 04:00, coolconnor1234p0sv4p
Another name for addicting games. com
Answers: 1
image
Computers and Technology, 23.06.2019 23:30, econsta3
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
image
Computers and Technology, 24.06.2019 12:40, kanga06
Match the feature to the network architecture. expensive to set up useful for a small organization easy to track files has a central server inexpensive to set up difficult to track files useful for a large organization does not have a central server client- server network peer-to-peer network
Answers: 3
Do you know the correct answer?
Apolynomial of degree n with coefficients a0, a1, a2, an is the function p(x) = a0 + a1x + a2x 2 +...

Questions in other subjects:

Konu
Mathematics, 11.10.2021 05:20
Konu
Mathematics, 11.10.2021 05:20
Konu
Mathematics, 11.10.2021 05:20