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.data_entry();
|
||||
//lgs.gauss();
|
||||
lgs.cramer();
|
||||
cout << lgs.gauss();
|
||||
cout << lgs.cramer();
|
||||
cout << endl;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue