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:
(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.
Step by Step Answer:
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis