16 output.setf(ios::fixed, ios::floatfield);
18 for (
long i=0; i<3; i++ )
19 output << m[i] << endl;
33 cout <<
"Matrix:" << endl;
34 cout << mat[0][0] <<
"," << mat[0][1] <<
"," << mat[0][2] <<
" (" <<
35 sqrt(mat[0][0]*mat[0][0]+mat[0][1]*mat[0][1]+mat[0][2]*mat[0][2]) <<
")" << endl;
36 cout << mat[1][0] <<
"," << mat[1][1] <<
"," << mat[1][2] <<
" (" <<
37 sqrt(mat[1][0]*mat[1][0]+mat[1][1]*mat[1][1]+mat[1][2]*mat[1][2]) <<
")" << endl;
38 cout << mat[2][0] <<
"," << mat[2][1] <<
"," << mat[2][2] <<
" (" <<
39 sqrt(mat[2][0]*mat[2][0]+mat[2][1]*mat[2][1]+mat[2][2]*mat[2][2]) <<
")" << endl;
40 cout <<
" (" << sqrt(mat[0][0]*mat[0][0]+mat[1][0]*mat[1][0]+mat[2][0]*mat[2][0]) <<
"," <<
41 sqrt(mat[0][1]*mat[0][1]+mat[1][1]*mat[1][1]+mat[2][1]*mat[2][1]) <<
"," <<
42 sqrt(mat[0][2]*mat[0][2]+mat[1][2]*mat[1][2]+mat[2][2]*mat[2][2]) <<
")" << endl;
44 cout <<
"Determinant = " << mat.
determinant() << endl << endl;