summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/2geom/include/2geom/orphan-code/chebyshev.h
blob: f729e1f07271d6a55bc6d74354dc81c04ce6eaa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _CHEBYSHEV
#define _CHEBYSHEV

#include <2geom/sbasis.h>
#include <2geom/interval.h>

/*** Conversion between Chebyshev approximation and SBasis.
 * 
 */

namespace Geom{

SBasis chebyshev_approximant (double (*f)(double,void*), int order, Interval in, void* p=0);
SBasis chebyshev_approximant_interpolating (double (*f)(double,void*), int order, Interval in, void* p=0);
SBasis chebyshev(unsigned n);

};

/*
  Local Variables:
  mode:c++
  c-file-style:"stroustrup"
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
  indent-tabs-mode:nil
  fill-column:99
  End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :

#endif