33 poly (nr_double_t _x, nr_double_t _y)
34 :
x(_x),
f0(_y) {
f1 =
f2 = 0; }
35 poly (nr_double_t _x, nr_double_t _f0, nr_double_t _f1)
36 :
x(_x),
f0(_f0),
f1(_f1) {
f2 = 0; }
37 poly (nr_double_t _x, nr_double_t _f0, nr_double_t _f1, nr_double_t _f2)
38 :
x(_x),
f0(_f0),
f1(_f1),
f2(_f2) { }
41 nr_double_t
eval (nr_double_t _x) {
42 nr_double_t dx = _x -
x;
return f0 + dx * (
f1 + dx *
f2);
poly(nr_double_t _x, nr_double_t _f0, nr_double_t _f1, nr_double_t _f2)
nr_double_t eval(nr_double_t _x)
poly(nr_double_t _x, nr_double_t _f0, nr_double_t _f1)
poly(nr_double_t _x, nr_double_t _y)