正在加载图片...
85 Relaxation Methods Lab 08. SOR Method Use the sor method to solve a given nn linear system ax= b with an initial approximation x()=0 and a set of a's Input There are several sets of inputs. For each set: The 1st line contains an integer 100>n>0 which is the size of a matrix. n=-l signals the end of file The following n lines contain the 21 augmented matrix in the following format:……… The numbers are separated by spaces and new lines The next line contains a real number Tol. which is the tolerance for‖l· ll norm, and an integer m≥0 which is the maximum number of iterations The last line of each test case contains an integer m>0, followed by m real a’s.§5 Relaxation Methods Lab 08. SOR Method Use the SOR method to solve a given n×n linear system with an initial approximation and a set of ’s. Input There are severalsets of inputs. For each set: The 1 st line contains an integer 100  n  0 which is the size of a matrix. n = −1 signalsthe end of file. The followingn lines contain the augmented matrix in the following format: The numbers are separated by spaces and new lines. The next line contains a real number TOL, which is the tolerance for || ·|| norm, and an integer N  0 which is the maximum number of iterations. The last line of each test case contains an integer m > 0, followed by m real ’s. Ax b   = 0 (0)   x = n nn n n n a a b a a b a a b ... ... ... ... ... ... ... 1 21 2 2 11 1 1
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有