BIG deep clean

This commit is contained in:
2020-06-10 13:14:16 +03:00
parent f579718e0b
commit c59579d5d5
222 changed files with 2392 additions and 11600 deletions

View File

@@ -117,12 +117,6 @@ void PIMathSolver::fromTF(const TransferFunction & TF) {
void PIMathSolver::solveEyler1(double u, double h) {
/*for (uint i = 0; i < size; ++i) {
* sum = 0.;
* for (uint j = 0; j < size; ++j)
* sum += A[j][i] * X[j];
* xx[i] = sum + d[i] * u;
}*/
F[0] = A * X + d * u;
X += F[0] * h;
moveF();
@@ -200,7 +194,7 @@ void PIMathSolver::solvePA(double u, double h, uint deg) {
solveEyler2(u, h);
break;
}
/// calc last piece
// calc last piece
x0 = 0.;
td = 1.;
t = times[0];
@@ -221,7 +215,7 @@ void PIMathSolver::solvePA(double u, double h, uint deg) {
lp = x0 - x1;
if (deg > 2) {
/// calc prev piece
// calc prev piece
x0 = 0.;
td = 1.;
dh = times[1] - times[2];
@@ -233,10 +227,10 @@ void PIMathSolver::solvePA(double u, double h, uint deg) {
}
x0 *= t;
ct = x1 - x0;
/// calc correction
// calc correction
ct -= pY[k];
}
/// calc final
// calc final
X[k] += lp - ct;
pY[k] = lp;
} else {