Class blmc_drivers::Polynome

template<int ORDER>
class Polynome

Simple class that defines \( P(x) \) a polynome of order ORDER.

It provide simple methods to compute \( P(x) \), \( \frac{dP}{dx}(x) \), and \( \frac{dP^2}{dx^2}(x) \)

Template Parameters:

ORDER – is the order of the polynome

Subclassed by blmc_drivers::TimePolynome< ORDER >, blmc_drivers::TimePolynome< ORDER >

Public Functions

Polynome()

Polynome<ORDER> definitions.

Constructor

~Polynome()

Destructor

double compute(double x)

Compute the value.

double compute_derivative(double x)

Compute the value of the derivative.

double compute_sec_derivative(double x)

Compute the value of the second derivative.

void get_coefficients(Coefficients &coefficients) const

Get the coefficients.

void set_coefficients(const Coefficients &coefficients)

Set the coefficients.

inline int degree()
void print() const

Print the coefficient.

Polynome()

Constructor

~Polynome()

Destructor

double compute(double x)

Compute the value.

double compute_derivative(double x)

Compute the value of the derivative.

double compute_sec_derivative(double x)

Compute the value of the second derivative.

void get_coefficients(Coefficients &coefficients) const

Get the coefficients.

void set_coefficients(const Coefficients &coefficients)

Set the coefficients.

inline int degree()
void print() const

Print the coefficient.