Jpp 19.3.0
the software that should make you happy
Loading...
Searching...
No Matches
Horner.h File Reference

Go to the source code of this file.

Classes

struct  utl::Polynomial< Float, Tag, order >
 
struct  utl::Horner< Float, Tag, order >
 
struct  utl::Horner< Float, Tag, 0 >
 

Namespaces

namespace  utl
 

Macros

#define HORNER_COEFF(_Tag_, _i_, _c_)
 
#define HORNER_COEFF2(_Tag_, _i_, _c_y_)
 
#define HORNER0(F, x, c0)
 
#define HORNER1(F, x, c1, c0)
 
#define HORNER2(F, x, c2, c1, c0)
 
#define HORNER3(F, x, c3, c2, c1, c0)
 
#define HORNER4(F, x, c4, c3, c2, c1, c0)
 
#define HORNER5(F, x, c5, c4, c3, c2, c1, c0)
 
#define HORNER6(F, x, c6, c5, c4, c3, c2, c1, c0)
 
#define HORNER7(F, x, c7, c6, c5, c4, c3, c2, c1, c0)
 
#define HORNER8(F, x, c8, c7, c6, c5, c4, c3, c2, c1, c0)
 
#define HORNER9(F, x, c9, c8, c7, c6, c5, c4, c3, c2, c1, c0)
 

Macro Definition Documentation

◆ HORNER_COEFF

#define HORNER_COEFF ( _Tag_,
_i_,
_c_ )
Value:
template<typename Float> struct Polynomial<Float, _Tag_, _i_> { static Float Coeff() { return Float(_c_); } }

Definition at line 61 of file Horner.h.

61#define HORNER_COEFF(_Tag_, _i_, _c_) \
62 template<typename Float> struct Polynomial<Float, _Tag_, _i_> { static Float Coeff() { return Float(_c_); } }

◆ HORNER_COEFF2

#define HORNER_COEFF2 ( _Tag_,
_i_,
_c_y_ )
Value:
template<typename Float> struct Polynomial<Float, _Tag_, _i_> { static Float Coeff(const Float y) { return Float(_c_y_); } }

Definition at line 63 of file Horner.h.

63#define HORNER_COEFF2(_Tag_, _i_, _c_y_) \
64 template<typename Float> struct Polynomial<Float, _Tag_, _i_> { static Float Coeff(const Float y) { return Float(_c_y_); } }

◆ HORNER0

#define HORNER0 ( F,
x,
c0 )
Value:
(F)(c0)

Definition at line 67 of file Horner.h.

◆ HORNER1

#define HORNER1 ( F,
x,
c1,
c0 )
Value:
HORNER0(F, x, (F)(c1)*(x) + (F)(c0) )
#define HORNER0(F, x, c0)
Definition Horner.h:67
TCanvas * c1
Global variables to handle mouse events.

Definition at line 68 of file Horner.h.

◆ HORNER2

#define HORNER2 ( F,
x,
c2,
c1,
c0 )
Value:
HORNER1(F, x, (F)(c2)*(x) + (F)(c1), c0)
#define HORNER1(F, x, c1, c0)
Definition Horner.h:68

Definition at line 69 of file Horner.h.

◆ HORNER3

#define HORNER3 ( F,
x,
c3,
c2,
c1,
c0 )
Value:
HORNER2(F, x, (F)(c3)*(x) + (F)(c2), c1, c0)
#define HORNER2(F, x, c2, c1, c0)
Definition Horner.h:69

Definition at line 70 of file Horner.h.

◆ HORNER4

#define HORNER4 ( F,
x,
c4,
c3,
c2,
c1,
c0 )
Value:
HORNER3(F, x, (F)(c4)*(x) + (F)(c3), c2, c1, c0)
#define HORNER3(F, x, c3, c2, c1, c0)
Definition Horner.h:70

Definition at line 71 of file Horner.h.

◆ HORNER5

#define HORNER5 ( F,
x,
c5,
c4,
c3,
c2,
c1,
c0 )
Value:
HORNER4(F, x, (F)(c5)*(x) + (F)(c4), c3, c2, c1, c0)
#define HORNER4(F, x, c4, c3, c2, c1, c0)
Definition Horner.h:71

Definition at line 72 of file Horner.h.

◆ HORNER6

#define HORNER6 ( F,
x,
c6,
c5,
c4,
c3,
c2,
c1,
c0 )
Value:
HORNER5(F, x, (F)(c6)*(x) + (F)(c5), c4, c3, c2, c1, c0)
#define HORNER5(F, x, c5, c4, c3, c2, c1, c0)
Definition Horner.h:72

Definition at line 73 of file Horner.h.

◆ HORNER7

#define HORNER7 ( F,
x,
c7,
c6,
c5,
c4,
c3,
c2,
c1,
c0 )
Value:
HORNER6(F, x, (F)(c7)*(x) + (F)(c6), c5, c4, c3, c2, c1, c0)
#define HORNER6(F, x, c6, c5, c4, c3, c2, c1, c0)
Definition Horner.h:73

Definition at line 74 of file Horner.h.

◆ HORNER8

#define HORNER8 ( F,
x,
c8,
c7,
c6,
c5,
c4,
c3,
c2,
c1,
c0 )
Value:
HORNER7(F, x, (F)(c8)*(x) + (F)(c7), c6, c5, c4, c3, c2, c1, c0)
#define HORNER7(F, x, c7, c6, c5, c4, c3, c2, c1, c0)
Definition Horner.h:74

Definition at line 75 of file Horner.h.

◆ HORNER9

#define HORNER9 ( F,
x,
c9,
c8,
c7,
c6,
c5,
c4,
c3,
c2,
c1,
c0 )
Value:
HORNER8(F, x, (F)(c9)*(x) + (F)(c8), c7, c6, c5, c4, c3, c2, c1, c0)
#define HORNER8(F, x, c8, c7, c6, c5, c4, c3, c2, c1, c0)
Definition Horner.h:75

Definition at line 76 of file Horner.h.