Question: This problem studies the rational function: r ( x ) = ( 4 x 4 5 9 x 3 + 3 2 4 x 2
This problem studies the rational function: rxxxxx xxxx a Apply Horners rule twice once for the numerator and once for the denominator
to produce two plots, one for x i and one for x i Your
results should look like Fig.
b Create a new Python function that codes up the following expression:
sxx x x x x which is a rewritten version of our rational function. Apply this new function to the
case of the previous two plots and compare the rounding error pattern, size, etc.
c Now introduce two more sets of results, this time for the starting expression for
rx produced using not Horners rule but the naive implementation, using powers
ie the way you would have coded this up before doing the previous problem
Interpret your findings in python
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
