private double PartialSum1(int n, double x) { var s = coeff1(0); for (int j = 1; j <= n; j++) { s += coeff1(j) * MixHaar.MixedHaar(1, j + 1)(x); } return(s); }
private double PartialSum2(int n, double x) { var s = coeff2(0) + coeff2(1) * x; for (int j = 2; j <= n; j++) { s += coeff2(j) * MixHaar.MixedHaar(2, j + 1)(x); } return(s); }