subject
Mathematics, 04.11.2019 22:31 marisolrojo2002

There is a more efficient algorithm (in terms of the number of multiplications and additions used) for evaluating polynomials than the conventional algorithm described in the previous exercise. it is called horner's method. this pseudocode show how to use this method to find the value of
a_nx^n+a_{n−1}x^{n−1}++a_1x+a_ 0 at x=c
procedure horner(c, a₀, a₁, a₂ a_n: real numbers)
y: =a_n
for i: =1 to n
y: =y∗c+a_{n-i}
{y=a_nc^n+a_{n-1}c^{n-1}++a_1c +a_0}
a) evaluate 3x²+x+1 at x=2 by working through each step of the algorithm showing the values assigned at each assignment step.
b) exactly how many multiplications and additions are used by this algorithm to evaluate a polynomial of degree n at x=c? (do not count additions used to increment the loop variable.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 16:20
Ivan began dividing g2  – 6 by g + 1, noting that . he started by placing g in the quotient, as shown below.what is g2  – 6 divided by g + 1? g –  1 –  g + 1  – g  –  7 + g  –  5  + 
Answers: 3
question
Mathematics, 21.06.2019 16:30
Triangle inequality theorem state if each set of three numbers can be the lengths of the sides of a triangle. 1. 9, 8, 22. 2. 5,10,12. 3. 7,10,22. 4. 4,11,12. 5. 11,9,10. 6. 10,4,19. 7. 3,12,10. 8. 4,3,2. 9. 6,5,13. 10. 7,12,20. me .
Answers: 3
question
Mathematics, 21.06.2019 18:30
How to use order of operation in 20 divide by 4 multiply 5 = 1
Answers: 1
question
Mathematics, 21.06.2019 20:00
For what type of equity loan are you lent a lump sum, which is to be paid within a certain period of time? a. a line of credit b. equity c. a second mortgage d. an amortization
Answers: 3
You know the right answer?
There is a more efficient algorithm (in terms of the number of multiplications and additions used) f...
Questions
question
Mathematics, 22.10.2020 21:01
question
Geography, 22.10.2020 21:01
question
Mathematics, 22.10.2020 21:01
Questions on the website: 13722367