Mathematics
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.

answer
Answers: 2

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 15:40, pum9roseslump
Evaluate the following expression 1/3^2
Answers: 1
image
Mathematics, 21.06.2019 17:00, hsernaykaw42
Use the frequency distribution, which shows the number of american voters (in millions) according to age, to find the probability that a voter chosen at random is in the 18 to 20 years old age range. ages frequency 18 to 20 5.9 21 to 24 7.7 25 to 34 20.4 35 to 44 25.1 45 to 64 54.4 65 and over 27.7 the probability that a voter chosen at random is in the 18 to 20 years old age range is nothing. (round to three decimal places as needed.)
Answers: 1
image
Mathematics, 21.06.2019 19:00, megamorph
[10 points, algebra 2]according to my answer key the restrictions are -1 and 4. but why not positive 1?
Answers: 1
image
Mathematics, 22.06.2019 00:00, Geo777
How many quarts of a 50% solution of acid must be added to 20 quarts of a 20% solution of acid in order to get a 40% solution of acid?
Answers: 2
Do you know the correct answer?
There is a more efficient algorithm (in terms of the number of multiplications and additions used) f...

Questions in other subjects:

Konu
Mathematics, 25.01.2021 01:00
Konu
Mathematics, 25.01.2021 01:00