|
wavelength 1.0.0
|
A polynomial read from a configuration array. More...
#include <polynomial.h>
Public Member Functions | |
| Polynomial () | |
| Construct a polynomial with no coefficients. | |
| ~Polynomial () | |
| Destroy the polynomial. | |
| void | Load (const DataArray *pData) |
| Replace the coefficients with the nodes of an array after its tag. | |
| float | Eval (float flX) const |
| Evaluate the polynomial by Horner's rule. | |
A polynomial read from a configuration array.
The class is not polymorphic, and the name is inferred from Eval(). The object is the vector of its coefficients.
| Polynomial::Polynomial | ( | ) |
Construct a polynomial with no coefficients.
| Polynomial::~Polynomial | ( | ) |
Destroy the polynomial.
| void Polynomial::Load | ( | const DataArray * | pData | ) |
Replace the coefficients with the nodes of an array after its tag.
| pData | The array, the coefficient of the highest power first. |
| float Polynomial::Eval | ( | float | flX | ) | const |
Evaluate the polynomial by Horner's rule.
| flX | The variable. |