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 14:10
Will give brainliest series to sigma notation write the following series in sigma notation. 6+10+14+18+22+26+30 example image shown below.
Answers: 1
question
Mathematics, 21.06.2019 17:30
Solve the equation - 2(m -30) = -6m a-15 b-13 c-8 d8
Answers: 1
question
Mathematics, 21.06.2019 19:30
:24% of students in a class are girls. if there are less than 30 students in this class, how many students are there? how many girls are there?
Answers: 2
question
Mathematics, 22.06.2019 00:10
Hello, i need compare km^2 and km. what's difference in this?
Answers: 2
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, 04.05.2020 22:35
question
Mathematics, 04.05.2020 22:35
question
Mathematics, 04.05.2020 22:35
Questions on the website: 13722360