作业:①
分别用J法和G-S法求解下列方程,并讨论结果。
?12?2??x1??1???????111???x2???1? ?221??x??1????3???#include
cout<<\请输入系数矩阵行数m、列数n:\ cin>>m>>n; if(m
cout<<\请输入常数向量B:\ for(i=0;i
cout<<\请输入最大允许误差s:\ cin>>s; cout<<\请输入最大迭代次数:\ cin>>mtimes;
cout<<\请输入一零级向量X:\ for(i=0;i
do{ for(i=0;i delete[] A; A=0; delete[] B; B=0; delete[] T; T=0; delete[] X; X=0; delete[] S; S=0; return 0; }