0
answers
0
watching
92
views
10 Nov 2019
3s. Implement the conjugate gradient algorithm CG ofTesy is the systems of Problems 123, and 4. Whenever possible, for it wih purposes, use systems with a known true solution. Using it, computs true errors in each iterate and see how rapidly they decrease. For the l system in Problem 4, that is based on solving an integral equation, solve th system for several values of n. Comment on the results testing near igorithm CG (A, b, x, n) 1. Remark: This algorithm calculates the solution of Ax - b using the conjugate gradient method. 3. For k = 0, .. . , n-1, do through step 7. 4. I 0, then set x -x, and exit. 5. For k-, B0; and for .I'A- 6. ? 7. End loop on k. 8. xx and exit. 1 1 -1 (1) A1 2 2 b0 -2 1 1 4 4 2 (2) A-12 3 4 2 4 (3) A -13 4 -3 710 14
3s. Implement the conjugate gradient algorithm CG ofTesy is the systems of Problems 123, and 4. Whenever possible, for it wih purposes, use systems with a known true solution. Using it, computs true errors in each iterate and see how rapidly they decrease. For the l system in Problem 4, that is based on solving an integral equation, solve th system for several values of n. Comment on the results testing near igorithm CG (A, b, x, n) 1. Remark: This algorithm calculates the solution of Ax - b using the conjugate gradient method. 3. For k = 0, .. . , n-1, do through step 7. 4. I 0, then set x -x, and exit. 5. For k-, B0; and for .I'A- 6. ? 7. End loop on k. 8. xx and exit. 1 1 -1 (1) A1 2 2 b0 -2 1 1 4 4 2 (2) A-12 3 4 2 4 (3) A -13 4 -3 710 14