Debian Codegraph @

dwsys/ChebyshevSeries.h

raw symbols SCIP
1 #cxx . . $ `<file>/dwsys/ChebyshevSeries.h`/ifndef _ChebyshevSeries_h_
2 #define _ChebyshevSeries_h_cxx . . $ `dwsys/ChebyshevSeries.h:2:9`!
3 /* ChebyshevSeries.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 #include "FunctionSeries.h"cxx . . $ `<file>/dwsys/FunctionSeries.h`/
22 #include "Polynomial.h"cxx . . $ `<file>/dwsys/Polynomial.h`/
23
24 /*
25 A ChebyshevSeries p(x) on a domain [xmin,xmax] is defined as the
26 following linear combination of Chebyshev polynomials T[k](x') of
27 degree k-1 and domain [-1, 1]:
28 p(x) = sum (k=1..numberOfCoefficients, c[k]*T[k](x')) - c[1] / 2, where
29 x' = (2 * x - xmin - xmax) / (xmax - xmin)
30 This is equivalent to:
31 p(x) = c[1] /2 + sum (k=2..numberOfCoefficients, c[k]*T[k](x'))
32 */
33
34 Thing_definecxx . . $ ClassInfo# (ChebyshevSeries, FunctionSeries) {
35 // overridden methods:
36 public:
37 virtual double v_evaluatecxx . . $ structChebyshevSeries#v_evaluate(447c67c6676f75c3). (double x);
38 virtual void v_evaluateTermscxx . . $ structChebyshevSeries#v_evaluateTerms(c7d2ecbf502d4cf4). (double x, VECcxx . . $ VEC# terms);
39 virtual void v_getExtremacxx . . $ structChebyshevSeries#v_getExtrema(a54784ab049e7c7d). (double x1, double x2, double *xmin, double *ymin, double *xmax, double *ymax);
40 };
41
42 autoChebyshevSeriescxx . . $ autoChebyshevSeries# ChebyshevSeries_createcxx . . $ ChebyshevSeries_create(d7b2205d89dbf313). (double xmin, double xmax, integercxx . . $ integer# numberOfPolynomials);
43
44 autoChebyshevSeriescxx . . $ autoChebyshevSeries# ChebyshevSeries_createWithCoefficientscxx . . $ ChebyshevSeries_createWithCoefficients(e40dfba4ba1d2b5). (double xmin, double xmax, constVECVUcxx . . $ constVECVU# const& coefficients);
45
46 autoPolynomialcxx . . $ autoPolynomial# ChebyshevSeries_to_Polynomialcxx . . $ ChebyshevSeries_to_Polynomial(decf9667bc295c4d). (ChebyshevSeriescxx . . $ ChebyshevSeries# me);
47
48
49 #endif /* _ChebyshevSeries_h_ */