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 04:00
Chloe is building a kiosk-based excel application. she wants to make some modifications to the screen elements in order to keep users from being distracted by parts of the application that are irrelevant to her application. she turns to henry for guidance as she knows he built a similar solution earlier this year.chloe has decided to hide the worksheet gridlines and the vertical scroll bar. what does henry tell her to use to do this? a) screen elements dialog boxb) display options dialog boxc) customization dialog boxd) excel options dialog box
Answers: 2
question
Computers and Technology, 22.06.2019 04:30
What kind of software users of all skill levels create web pages that include graphics, video, audio, animation, and other special effects? website authoring website software website publishing website editing
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
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
Mathematics, 16.04.2021 22:30
question
Mathematics, 16.04.2021 22:30
Questions on the website: 13722360