1 #ifndef _utl_Polynomial_h_
2 #define _utl_Polynomial_h_
4 #include <utl/AugerException.h>
29 template<
typename T,
unsigned int n>
46 explicit operator bool()
const {
return !IsZero(); }
std::istream & operator>>(std::istream &is, SVector< n, T > &v)
Simple polynomial container.
Polynomial(const double coeff=0)
std::vector< double > fCoeff
bool is(const double a, const double b)
Polynomial(const std::vector< double > &coeff)
double operator()(const double x) const
Stream & operator<<(Stream &s, MessageLoggerConfig &mlc)
Applies the configuration to the given stream.
double EvalPoly(const T &a, const double x)
Simple polynomial evaluator.
Polynomial(const T(&coeff)[n])
void Check(const Iterator &i, const Iterator &e, const int id)
Base class for inconsistency/illogicality exceptions.
const std::vector< double > & GetCoefficients() const