Question: We consider the recurrence equation (R) x n+1 = 13x n 4x n1 (for all n 1), when x0, x1 are given. 1.1 Prove that

We consider the recurrence equation (R) xn+1 = 13xn 4xn1 (for all n 1),

when x0, x1 are given. 1.1 Prove that if x0=1 and x1=1/3, then xn=3n for all n 0.

1.2 Compute 3n for n = 1 through 50. Directly use the formula 3n itself (in a for-loop, in Python or C, etc.). Use double precision (not more, not less). Give the resulting 50 numbers 3n, together with the corresponding n.

1.3 Write a small program (in Python or C, etc.) to compute xn by using the recurrence equation (R) above, for n = 1 through 50. Use double precision (not more, not less). Give the resulting 50 numbers, together with the corresponding n.

1.4 Comparing 1.2 and 1.3, what is strange about the numbers near the end in 1.3 ? 1.5 Use the recurrence equation (R), but now with x0 = 1 and x1 = 1/3 104, to compute xn for n = 1 through 50 (in double precision). Give the resulting 50 numbers with the corresponding n, and your (short) program.

1.6 Assume x0 = 1,x1 = 1/3 104. Find two numbers A and B such that for all n {0,1}: xn = 3nA+4nB.

1.7 For the values of A and B found in 1.6, prove that the sequence xn = 3nA+4nB satisfies the recurrence equation for all n 0.

1.8 In light of 1.7, explain the observations in 1.4. (Think in terms of amplification and propagation of numerical imprecision, or errors. )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!