用C语言编程实现列主元消去法.docVIP

  • 74
  • 0
  • 约2.61千字
  • 约 3页
  • 2017-08-25 发布于河南
  • 举报
用C语言编程实现列主元消去法,程序代码如下: #include stdlib.h #include stdio.h #include conio.h #include string.h #include math.h #define N 100 float Table(int n,float a[N][N],float b[N]) { int i,j; printf(Please input the matrix A by row!\n); for(i=0;in;i++) { printf(Row %d:,i); for(j=0;jn;j++) scanf(%f,a[i][j]); } printf(Please input the array b:); for(i=0;in;i++) scanf(%f,b[i]); printf(\nThe matrix A and array b:\n); for(i=0;in;i++) { for(j=0;jn;j++) printf(%10.4f,a[i][j]); printf(%10.4f,b[i]); printf(\n); } } float find_max_abs(int n,int j,float a[

文档评论(0)

1亿VIP精品文档

相关文档