mirror of https://github.com/Askill/AP-SCE.git
- fixed cramer
This commit is contained in:
parent
bf941a73a8
commit
e1360d5f36
|
|
@ -40,7 +40,7 @@ void lgs()
|
||||||
{
|
{
|
||||||
LGS lgs;
|
LGS lgs;
|
||||||
lgs.data_entry();
|
lgs.data_entry();
|
||||||
//lgs.gauss();
|
cout << lgs.gauss();
|
||||||
lgs.cramer();
|
cout << lgs.cramer();
|
||||||
cout << endl;
|
cout << endl;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ void LGS::copy_array()
|
||||||
void LGS::swap_column(long double** ca2, int col)
|
void LGS::swap_column(long double** ca2, int col)
|
||||||
{
|
{
|
||||||
long double* temp = new long double[variables];
|
long double* temp = new long double[variables];
|
||||||
|
copy_array();
|
||||||
for(int i=0; i < variables ;i++)
|
for(int i=0; i < variables ;i++)
|
||||||
{
|
{
|
||||||
temp[i] = CA[i][variables];
|
temp[i] = CA[i][variables];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue