Destructor
Return a copy of this object from the heap. The caller is responsible for
deleting the pointer.
Prerequisite
Synopsis
A SPolynomialExample
SPolynomial<Float> pf(3); // Third order polynomial - coeffs 0 by default
pf.setCoefficient(1, 1.0);
pf[5] = 2.0;
pf.setCoefficient(3, 3.0); // 3x^3 + 2x^2 + x
pf(2); // == 34
Template Type Argument Requirements (T)
Thrown Exceptions
To Do
Member Description
SPolynomial() : SPolynomialParam<T>()
Constructs a zero'th order polynomial, with a coeficcient of 0.0.
explicit SPolynomial(uInt order) : order<T>(order)
Makes a polynomial of the given order, with all coeficcients set to
zero, and height, center, width to 1,0,1.
SPolynomial(const SPolynomial<T> &other) : other<T>(other)
Copy constructor/assignment (deep copy)
SPolynomial<T> &operator=(const SPolynomial<T> &other)
virtual ~SPolynomial()
virtual T eval(typename Function<T>::FunctionArg x) const
Evaluate the polynomial at x.
virtual Function<T> *clone() const