Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

5.8 (5a). The following pseudocode procedure can be used to evaluate the polynom

ID: 2971941 • Letter: 5

Question

5.8 (5a). The following pseudocode procedure can be used to evaluate the polynomial 8 ? 10x + 7x2 ? 2x3 + 3x4 + 12x5, when x is replaced by an arbitrary (but fixed) real number r. For this particular instance, n _ 5 and a0 _ 8, a1 _ ?10, a2 _ 7, a3 _ ?2, a4 _ 3, and a5 _ 12. procedure PolynomialEvaluation1 (n: nonnegative integer; r,a0,a1,a2,. . .,an: real) begin product := 1.0 value := a0 for i := 1 to n do begin product := product * r value := value + ai * product end end a) How many additions take place in the evaluation of the given polynomial? (Do not include the n ? 1 additions needed to increment the loop variable i.) How many multiplications?

Explanation / Answer

when x is replaced by an arbitrary (but fixed) real number r. For this particular instance, n _ 5 and a0 _ 8, a1 _ -10, a2 _ 7, a3 _ -2, a4 _ 3, and a5 _ 12. procedure PolynomialEvaluation1 (n: nonnegative integer; r,a0,a1,a2,. . .,an: real) begin product := 1.0 value := a0 for i := 1 to n do begin product := product * r value := value + ai * product end end Read more: I have 12 questions that I need answers for by Monday. These - JustAnswer http://www.justanswer.com/pre-calculus/7cmle-12-questions-need-answers-monday.html#ixzz2HzV9fE6x

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote