Debian Codegraph @

dwsys/LegendreSeries.h

raw symbols SCIP
1 #ifndef _LegendreSeries_h_
2 #define _LegendreSeries_h_
3 /* LegendreSeries.h
4 *
5 * Copyright (C) 2020 David Weenink
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21
22 #include "FunctionSeries.h"
23 #include "Polynomial.h"
24
25 Thing_define (LegendreSeries, FunctionSeries) {
26 // overridden methods:
27 public:
28 virtual double v_evaluate (double x);
29 virtual void v_evaluateTerms (double x, VEC terms);
30 virtual void v_getExtrema (double x1, double x2, double *xmin, double *ymin, double *xmax, double *ymax);
31 };
32
33 autoLegendreSeries LegendreSeries_create (double xmin, double xmax, integer numberOfPolynomials);
34
35 autoLegendreSeries LegendreSeries_createWithCoefficients (double xmin, double xmax, constVECVU const& coefficients);
36
37 autoLegendreSeries LegendreSeries_getDerivative (LegendreSeries me);
38
39 autoPolynomial LegendreSeries_to_Polynomial (LegendreSeries me);
40
41 #endif /* _LegendreSeries_h_ */