mirror of https://github.com/Askill/AP-SCE.git
This commit is contained in:
parent
f2737825fc
commit
ce9f598059
|
|
@ -1,8 +1,7 @@
|
|||
#include "lgs.h"
|
||||
#include "time.h"
|
||||
#include <iostream>
|
||||
#include<iostream>
|
||||
#include<iomanip>
|
||||
|
||||
using namespace std;
|
||||
|
||||
void LGS::data_entry()
|
||||
|
|
@ -101,6 +100,7 @@ float LGS::gauss()
|
|||
GA[i][j] = GA[k][j];
|
||||
GA[k][j] = temp;
|
||||
}
|
||||
|
||||
cout << endl << "Matrix nach Pivot: " << endl;
|
||||
print();
|
||||
|
||||
|
|
@ -124,10 +124,10 @@ float LGS::gauss()
|
|||
x[i] = x[i] / GA[i][i]; //now finally divide the rhs by the coefficient of the variable to be calculated
|
||||
}
|
||||
|
||||
cout << endl << "Loesung: " << endl;
|
||||
cout << endl << "Loesung: " << endl; // Print the values of x, y, z
|
||||
for (i = 0; i<variables; i++){
|
||||
int var1 = i + 65;
|
||||
cout << (char)var1 << 1 << " = " << x[i] << endl; // Print the values of x, y,z,....
|
||||
cout << (char)var1 << 1 << " = " << x[i] << endl;
|
||||
}
|
||||
cout << endl;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue