The following algorithm which is used to evaluate a polynomial anz" +an-12¹−¹+...+₁²+ªo at r = c is expressed in pseudocode as follows: procedure polynomial evaluation (e, ao,,an real numbers) y := an for i:=1 to n y := y*c+an-i return y {y=a₂2" + ª₂_12²−¹+...+₁+ao}. where the final value of y is the value of the polynomial at r = c. (a) Evaluate 12r¹ + 3x³ − 5x² + 7x − 8 at z = -1 by working through each step of the a showing the values assigned at each assignment step CLEARLY. Answers with missing it indices, etc. will not be taken into account.

Linear Algebra: A Modern Introduction
4th Edition
ISBN:9781285463247
Author:David Poole
Publisher:David Poole
Chapter2: Systems Of Linear Equations
Section2.2: Direct Methods For Solving Linear Systems
Problem 2CEXP
icon
Related questions
Question
Problem 2.
The following algorithm which is used to evaluate a polynomial
anr" + an-17"-1 +……+a1x + ao
at r = c is expressed in pseudocode as follows:
procedure polynomial evaluation (c, ao, - - - ,an : real numbers)
y:= an
for i := 1 to n
y := y *c+ an-i
return y {y = an" + an-17"-1 + ...+aįx+ ao}.
where the final value of y is the value of the polynomial at r = c.
(a) Evaluate 12r + 3r3 – 52² + 7x – 8 at r = -1 by working through each step of the a
showing the values assigned at each assignment step CLEARLY. Answers with missing it
indices, etc. will not be taken into account.
Transcribed Image Text:Problem 2. The following algorithm which is used to evaluate a polynomial anr" + an-17"-1 +……+a1x + ao at r = c is expressed in pseudocode as follows: procedure polynomial evaluation (c, ao, - - - ,an : real numbers) y:= an for i := 1 to n y := y *c+ an-i return y {y = an" + an-17"-1 + ...+aįx+ ao}. where the final value of y is the value of the polynomial at r = c. (a) Evaluate 12r + 3r3 – 52² + 7x – 8 at r = -1 by working through each step of the a showing the values assigned at each assignment step CLEARLY. Answers with missing it indices, etc. will not be taken into account.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Elements Of Modern Algebra
Elements Of Modern Algebra
Algebra
ISBN:
9781285463230
Author:
Gilbert, Linda, Jimmie
Publisher:
Cengage Learning,
College Algebra
College Algebra
Algebra
ISBN:
9781305115545
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Algebra: Structure And Method, Book 1
Algebra: Structure And Method, Book 1
Algebra
ISBN:
9780395977224
Author:
Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:
McDougal Littell