- fixed cramer

This commit is contained in:
Patrice Matz 2017-11-01 00:08:38 +01:00
parent bf941a73a8
commit e1360d5f36
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ void lgs()
{
LGS lgs;
lgs.data_entry();
//lgs.gauss();
lgs.cramer();
cout << lgs.gauss();
cout << lgs.cramer();
cout << endl;
}

View File

@ -66,7 +66,7 @@ void LGS::copy_array()
void LGS::swap_column(long double** ca2, int col)
{
long double* temp = new long double[variables];
copy_array();
for(int i=0; i < variables ;i++)
{
temp[i] = CA[i][variables];