목차
없음
본문내용
;i<3;i++){
t=absol(result[i][0]-b[i]);
if(t>norminf2)norminf2=t;
}
printf("infinite norm of |x-xh| = %f infinite norm of |Axh-b| = %f\n",norminf,norminf2);
}
float absol(float x)
{
if(x>=0)return x;
else return (-1) * x;
}
float MatrixMulti(float *a, float *b, int c, int d, int e){
int i,j,k;
for(i=0;i
for(j=0;j
for(k=0;k
result[i][j] += *(a+i*d+k) * *(b+k*e+j);
}
}
}
}
t=absol(result[i][0]-b[i]);
if(t>norminf2)norminf2=t;
}
printf("infinite norm of |x-xh| = %f infinite norm of |Axh-b| = %f\n",norminf,norminf2);
}
float absol(float x)
{
if(x>=0)return x;
else return (-1) * x;
}
float MatrixMulti(float *a, float *b, int c, int d, int e){
int i,j,k;
for(i=0;i
}
}
}
}
소개글