Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (wyniki3.is_open() && wyniki4.is_open())
- {
- double **x, **y;
- x = proj.getCrankLU();
- y = proj.getCrankGS();
- double *ptrX, *ptrY;
- double **an;
- an = proj.getAnal();
- double errLU;
- double errgs;
- double max1;
- double max2;
- for (int j = 0; j < N; j++)
- {
- max1 = 0.0;
- max2 = 0.0;
- ptrX = x[j];
- ptrY = y[j];
- for (int i = 0; i< M; i++)
- {
- errLU = ptrX[i] - an[j][i];
- errLU = fabs(errLU);
- if (errLU> max1)
- max1 = errLU;
- errgs = ptrY[i] - an[j][i];
- errgs = fabs(errgs);
- if (errgs> max2)
- max2 = errgs;
- }
- wyniki3 << log10(h*j) << " " << log10(max1) << endl;
- wyniki4 << log10(h*j) << " " << log10(max2) << endl;
- }
- wyniki3.close();
- wyniki4.close();
- }
Add Comment
Please, Sign In to add comment