|
Jpp 20.0.0-27-g39925593c-D
the software that should make you happy
|
#include <cmath>#include <limits>Go to the source code of this file.
Namespaces | |
| namespace | utl |
Macros | |
| #define | HORNER_COEFF(_Tag_, _i_, _c_) template<typename Float> struct Polynomial<Float, _Tag_, _i_> { static Float Coeff() { return Float(_c_); } } |
| #define | HORNER_COEFF2(_Tag_, _i_, _c_y_) template<typename Float> struct Polynomial<Float, _Tag_, _i_> { static Float Coeff(const Float y) { return Float(_c_y_); } } |
| #define | HORNER0(F, x, c0) (F)(c0) |
| #define | HORNER1(F, x, c1, c0) HORNER0(F, x, (F)(c1)*(x) + (F)(c0) ) |
| #define | HORNER2(F, x, c2, c1, c0) HORNER1(F, x, (F)(c2)*(x) + (F)(c1), c0) |
| #define | HORNER3(F, x, c3, c2, c1, c0) HORNER2(F, x, (F)(c3)*(x) + (F)(c2), c1, c0) |
| #define | HORNER4(F, x, c4, c3, c2, c1, c0) HORNER3(F, x, (F)(c4)*(x) + (F)(c3), c2, c1, c0) |
| #define | HORNER5(F, x, c5, c4, c3, c2, c1, c0) HORNER4(F, x, (F)(c5)*(x) + (F)(c4), c3, c2, c1, c0) |
| #define | HORNER6(F, x, c6, c5, c4, c3, c2, c1, c0) HORNER5(F, x, (F)(c6)*(x) + (F)(c5), c4, c3, c2, c1, c0) |
| #define | HORNER7(F, x, c7, c6, c5, c4, c3, c2, c1, c0) HORNER6(F, x, (F)(c7)*(x) + (F)(c6), c5, c4, c3, c2, c1, c0) |
| #define | HORNER8(F, x, c8, c7, c6, c5, c4, c3, c2, c1, c0) HORNER7(F, x, (F)(c8)*(x) + (F)(c7), c6, c5, c4, c3, c2, c1, c0) |
| #define | HORNER9(F, x, c9, c8, c7, c6, c5, c4, c3, c2, c1, c0) HORNER8(F, x, (F)(c9)*(x) + (F)(c8), c7, c6, c5, c4, c3, c2, c1, c0) |
| #define | Y2(d1, c12, d2) ((c12) ? (d1) : (d2)) |
| #define | Y3(d1, c12, d2, c23, d3) Y2(Y2(d1, c12, d2), c23, d3) |
| #define | Y4(d1, c12, d2, c23, d3, c34, d4) Y3(d1, c12, d2, c23, Y2(d3, c34, d4)) |
| #define | Y5(d1, c12, d2, c23, d3, c34, d4, c45, d5) Y4(Y2(d1, c12, d2), c23, d3, c34, d4, c45, d5) |
| #define | Y6(d1, c12, d2, c23, d3, c34, d4, c45, d5, c56, d6) Y5(d1, c12, d2, c23, d3, c34, d4, c45, Y2(d5, c56, d6)) |
| #define | Y7(d1, c12, d2, c23, d3, c34, d4, c45, d5, c56, d6, c67, d7) Y6(d1, c12, d2, c23, Y2(d3, c34, d4), c45, d5, c56, d6, c67, d7) |
| #define HORNER_COEFF | ( | _Tag_, | |
| _i_, | |||
| _c_ ) template<typename Float> struct Polynomial<Float, _Tag_, _i_> { static Float Coeff() { return Float(_c_); } } |
Definition at line 62 of file LambertW.hh.
| #define HORNER_COEFF2 | ( | _Tag_, | |
| _i_, | |||
| _c_y_ ) template<typename Float> struct Polynomial<Float, _Tag_, _i_> { static Float Coeff(const Float y) { return Float(_c_y_); } } |
Definition at line 64 of file LambertW.hh.
| #define HORNER0 | ( | F, | |
| x, | |||
| c0 ) (F)(c0) |
Definition at line 68 of file LambertW.hh.
Definition at line 69 of file LambertW.hh.
Definition at line 70 of file LambertW.hh.
Definition at line 71 of file LambertW.hh.
Definition at line 72 of file LambertW.hh.
| #define HORNER5 | ( | F, | |
| x, | |||
| c5, | |||
| c4, | |||
| c3, | |||
| c2, | |||
| c1, | |||
| c0 ) HORNER4(F, x, (F)(c5)*(x) + (F)(c4), c3, c2, c1, c0) |
Definition at line 73 of file LambertW.hh.
| #define HORNER6 | ( | F, | |
| x, | |||
| c6, | |||
| c5, | |||
| c4, | |||
| c3, | |||
| c2, | |||
| c1, | |||
| c0 ) HORNER5(F, x, (F)(c6)*(x) + (F)(c5), c4, c3, c2, c1, c0) |
Definition at line 74 of file LambertW.hh.
| #define HORNER7 | ( | F, | |
| x, | |||
| c7, | |||
| c6, | |||
| c5, | |||
| c4, | |||
| c3, | |||
| c2, | |||
| c1, | |||
| c0 ) HORNER6(F, x, (F)(c7)*(x) + (F)(c6), c5, c4, c3, c2, c1, c0) |
Definition at line 75 of file LambertW.hh.
| #define HORNER8 | ( | F, | |
| x, | |||
| c8, | |||
| c7, | |||
| c6, | |||
| c5, | |||
| c4, | |||
| c3, | |||
| c2, | |||
| c1, | |||
| c0 ) HORNER7(F, x, (F)(c8)*(x) + (F)(c7), c6, c5, c4, c3, c2, c1, c0) |
Definition at line 76 of file LambertW.hh.
| #define HORNER9 | ( | F, | |
| x, | |||
| c9, | |||
| c8, | |||
| c7, | |||
| c6, | |||
| c5, | |||
| c4, | |||
| c3, | |||
| c2, | |||
| c1, | |||
| c0 ) HORNER8(F, x, (F)(c9)*(x) + (F)(c8), c7, c6, c5, c4, c3, c2, c1, c0) |
Definition at line 77 of file LambertW.hh.
| #define Y2 | ( | d1, | |
| c12, | |||
| d2 ) ((c12) ? (d1) : (d2)) |
Definition at line 82 of file LambertW.hh.
Definition at line 84 of file LambertW.hh.
Definition at line 86 of file LambertW.hh.
| #define Y5 | ( | d1, | |
| c12, | |||
| d2, | |||
| c23, | |||
| d3, | |||
| c34, | |||
| d4, | |||
| c45, | |||
| d5 ) Y4(Y2(d1, c12, d2), c23, d3, c34, d4, c45, d5) |
Definition at line 88 of file LambertW.hh.
| #define Y6 | ( | d1, | |
| c12, | |||
| d2, | |||
| c23, | |||
| d3, | |||
| c34, | |||
| d4, | |||
| c45, | |||
| d5, | |||
| c56, | |||
| d6 ) Y5(d1, c12, d2, c23, d3, c34, d4, c45, Y2(d5, c56, d6)) |
Definition at line 90 of file LambertW.hh.
| #define Y7 | ( | d1, | |
| c12, | |||
| d2, | |||
| c23, | |||
| d3, | |||
| c34, | |||
| d4, | |||
| c45, | |||
| d5, | |||
| c56, | |||
| d6, | |||
| c67, | |||
| d7 ) Y6(d1, c12, d2, c23, Y2(d3, c34, d4), c45, d5, c56, d6, c67, d7) |
Definition at line 92 of file LambertW.hh.