// The program output's the solution if it exists. // #include #include #define N 100 int solve_few_linear_eq( float a[][N], float x[N], int n, int m) { int i=0,j=0,k=0,u=0,maxi=0; float tmp=0.0,temp=0.0; printf("\n\nOutput:\n\n"); while(iabs(a[maxi,j])) maxi=k; } if(a[maxi,j]!=0) { //converting it to upper triangular matrix tmp=x[maxi]; //and doing similar operations on x x[maxi]=x[i]; x[i]=tmp; for(k=0;k=0 && j>=0) //converting the Upper tri. matrix to identity matrix { //similar operations on x done... x[i]=(float)((float)x[i]/(float)a[i][j]); for(k=0;k=0;u--) { x[u]=x[u]-x[i]*a[u][j]; temp=a[u][j]; for(k=0;k