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 20:00
Need ! the total ticket sales for a high school basketball game were $2,260. the ticket price for students were $2.25 less than the adult ticket price. the number of adult tickets sold was 230, and the number of student tickets sold was 180. what was the price of an adult ticket?
Answers: 1
question
Mathematics, 22.06.2019 03:00
Ben frank is an electrician who installs lighting fixtures. he charges (in dollars) his clients 15h+40f15h+40f where hh is the number of hours worked and ff is the number of fixtures installed. how much does ben frank charge when he works 77 hours and installs 99 fixtures?
Answers: 1
question
Mathematics, 22.06.2019 03:20
If a=0.333333 and b=0.55555, what is the value of a+b
Answers: 1
question
Mathematics, 22.06.2019 04:00
Write a function rule for  “the output is  5 less than the input.” let  x be the input and let  y  be the output.
Answers: 1
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, 08.01.2020 06:31
Questions on the website: 13722360