diff --git a/Computer Oriented Statistical Methods/Gauss_Elimination.c b/Computer Oriented Statistical Methods/Gauss_Elimination.c new file mode 100644 index 00000000..e35fa7ba --- /dev/null +++ b/Computer Oriented Statistical Methods/Gauss_Elimination.c @@ -0,0 +1,100 @@ +#include +#include +void display(float a[20][20],int n) +{ + int i,j; + for(i=0;i>>\n",i+1); + for(j=0;j<=n;j++) + { + printf("r%d%d : ",i,j); + scanf("%f",&m[i][j]); + } + printf("\n"); + } + printf(":::::::::::: Current Matrix ::::::::::::\n\n"); + display(m,n); + + for(i=0;i>>>>>>>>>>>>>>>>>>>>>>>-------- %d\n",i+1); + m[20][20]=interchange(m,i,n); + display(m,n); + printf("\n_______________________________________\n"); + m[20][20]=eliminate(m,i,n); + display(m,n); + } + printf("\n\n Values are : \n"); + for(i=n-1;i>=0;i--) + { + l=n-1; + mul=0; + for(j=0;j