Algorithm 5.1.1 (Steepest Descent Method for solving LSE with p.d. matrix)
A= [16.0 4.0 8.0 4.0] [ 4.0 10.0 8.0 4.0] [ 8.0 8.0 12.0 10.0] [ 4.0 4.0 10.0 12.0] b= (32.0, 26.0, 38.0, 30.0) x= (1.00000000863, 1.00000001743, 0.999999963693, 1.0000000224) ||r||= 9.89016868402e-09 exact solution= (1.0, 1.0, 1.0, 1.0) A= [16.0 4.0 8.0 4.0] [ 4.0 10.0 8.0 4.0] [ 8.0 8.0 12.0 10.0] [ 4.0 4.0 10.0 12.0] b= (32.0, 26.0, 38.0, 30.0) x= (1.00000000863, 1.00000001743, 0.999999963693, 1.0000000224) ||r||= 9.89016868402e-09 exact solution= (1.0, 1.0, 1.0, 1.0) |
|