subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Ihave an iphone 8plus should i get another phone like samsung note 9 or s9 ? ?
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Which of the following includes the three primary network access technologies? dsl, cable modem, broadband lan, wan, man voip, uc, iptv tcp/ip, ftp, dhcp
Answers: 2
You know the right answer?
Apolynomial of degree n with coefficients a0, a1, a2, an is the function p(x) = a0 + a1x + a2x 2 +...
Questions
question
English, 13.10.2020 07:01
question
Mathematics, 13.10.2020 07:01
question
Mathematics, 13.10.2020 07:01
Questions on the website: 13722361