1、/Gauss 消去法解线性方程组/参考教材计算方法教程第二版,西安交通大学出版社#includeint main(void)float A77=3,-5,6,4,-2,-3,8,1,1,-9,15,1,-9 ,2,2,-1,7,5,-1,6,11,-1,1,3,2,7,-1,-2,4,3,1,-7,2,1,1,2,9,-8,11,-1,-4,-1,7,2,-1, 2,7,-1,9;float b7=11,2,29,9,5,8,25;float x7=0;float Aik,S;int i,j,k;int size=7;printf(“An“);for(i=0;i=0;k-)S=bk;for(j
2、=k+1;j#includeint main(void)float A77=3,-5,6,4,-2,-3,8,1,1,-9,15,1,-9 ,2,2,-1,7,5,-1,6,11,-1,1,3,2,7,-1,-2,4,3,1,-7,2,1,1,2,9,-8,11,-1,-4,-1,7,2,-1, 2,7,-1,9;float b7=11,2,29,9,5,8,25;float x7=0;float Aik,S,temp;int i,j,k;float max;/列主元的绝对值int col;/列主元所在的行int size=7;printf(“An“);for(i=0;i=0;k-)S=bk;for(j=k+1;jsize;j+)S=S-Akj*xj;xk=S/Akk;/solutionprintf(“The solution x=n“);for(i=0;isize;i+)printf(“%f “,xi);return 0;