【正文】
)kv,u(a )k(uv ?? 程序設(shè)計由同學(xué)們自己完成 Gaussian Elimination Gaussian Elimination – Amount of Computation Lab 05. Matrix Inversion Use GaussJordan Method with Partial Pivoting to find the inverse of a given matrix. 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 = ?1 signals the end of file. The 2nd line contains n?n real numbers which are the entries of the matrix. The numbers are separated by spaces or new lines. Output Each entry of the inverse matrix is to be printed as in the C fprintf: fprintf(outfile, %? , a )。 = ???????????????? ?? ????214056515201312312122.../rrrr???????????????? ?? ??4841005651520131232 524....../ rr消元 記 ,)( )1()1( nnijaAA ??? bb ?? ?)1(). . . ,2,()1(11)1()2()1(11)1()2(njibmbbamaaiiijiijij????????其中 ????????????? ??????????????( 2 )( 2 )( 2 )2( 2 )2( 2 )2