怎样把下列程序修改为逐次松弛迭代?
/*此程序是高斯赛德尔迭代*/大神们帮哈忙 万分感谢
#include "stdio.h"
#include "math.h"
#include "conio.h"
#define n 3
#define N 30
#define eps 1e-3
main()
{
int i,j,k=0;
float A[3][3]={{8,-1,1},{2,10,-1},{1,1,-5}},b[3]={8,11,-3},X[3]={0,0,0},t,e,s;
while(k<=N)
{
e=0.0;
printf("\nk=%d\t",k);
for(i=0;i<=n-1;i++)
{
s=0.0;
t=X[i];
printf("x%d=%f\t",i,X[i]);
for(j=0;j<=n-1;j++)
if(j!=i)
s+=A[i][j]*X[j];
X[i]=(b[i]-s)/A[i][i];
if(e<fabs(X[i]-t))
e=fabs(X[i]-t);
}
if(e<=eps)
{
printf("\nThe root:\nk=%d\t",k+1);
printf("\n");
for(i=0;i<=n-1;i++)
printf("x%d=%f\t",i,X[i]);
break;
}
if(k==N)
{
printf("Fail!");
exit();
}
k++;
}
printf("\n");
}