Answer the following questions about this program: (a) What mathematical problem does this program solve? (b) What

Question:

Answer the following questions about this program:1 function problem2_79 2 clc 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 n = 3; x = zeros

28 29 30 31 32 end fprintf(The converged result is: ') for i=1:n end fprintf('88.6f ',x(i))

(a) What mathematical problem does this program solve?

(b) What numerical method does this program use?

(c) What is the initial condition used to start the numerical method?

(d) What is the criteria for convergence?

(e) What is the reason you might choose the value 0.8 in line 17?

(f) What is the significance of changing line 17 to: x(i)= x(i)+ (b(i)-s)/A(i,i);

(g) What happens if you change line 17 to: x(i)= x(i)+ 2.5*(b(i)-s)/A(i,i);

(h) If we forget to include line 13, the program does not work. Explain the problem with this bug.

(i) How would you modify the mathematical problem from part (a) (with the same initial guess) to ensure that this numerical method will converge? Explain the reason behind your answer. Your answer can be in words, and you do not need to rewrite the program.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: