C and C++ Programs - Gauss Elimination Method
C and C++ Programs - Gauss Elimination Method
C and C++ Programs - Gauss Elimination Method
More
Next Blog
Create Blog
Sign In
hit counter
hit counter
Blog Archive
2014 (6)
2012 (6)
December (1)
September (2)
Gauss Elimination Method
gauss seidel method
August (2)
July (1)
About Me
Gautam Naik
Follow
217
2 comments:
vaibhav 24 February 2014 at 02:19
nice work thnx
Reply
for(j=1;j<=n+1;j++)
printf("\t%.2f",mat[i][j]);
printf("\n");
}
for(i=1;i<=n;i++)
{
if(mat[i][i]==0)
{
printf("Since diagonal element become zero\n Hence solution is not possible\n");
}
}
printf("Solution : \n");
for(i=0;in-i;j--)
sum=sum+mat[n-i][j];
x[n-i]=(mat[n-i][n+1]-sum*x[n])/mat[n-i][n-i];
printf("X%d = %4.2f\n",n-i,x[n-i]);
}
getch();
}
Comment as:
Publish
Newer Post
Google Account
Preview
Home
Older Post
Fish