Gobelijn API documentation
- generated for commit a0cbea7
|
#include <polynomial.h>
Public Member Functions | |
Polynomial (const std::vector< T > &vect) | |
T | operator() (const T &x) |
Polynomial< T > | operator+ (const Polynomial< T > &x) const |
Polynomial< T > | operator* (const Polynomial< T > &x) const |
Polynomial< T > | operator- (const Polynomial< T > &x) const |
Polynomial< T > | derive () const |
T | horner (const T &x) const |
Protected Member Functions | |
Polynomial () | |
Protected Attributes | |
std::vector< T > | vect |
Definition at line 8 of file polynomial.h.
|
inlineexplicit |
Definition at line 11 of file polynomial.h.
|
inlineprotected |
Definition at line 21 of file polynomial.h.
T Polynomial< T >::operator() | ( | const T & | x | ) |
Definition at line 11 of file polynomial.cpp.
Polynomial< T > Polynomial< T >::operator+ | ( | const Polynomial< T > & | x | ) | const |
Definition at line 23 of file polynomial.cpp.
References max(), and Polynomial< T >::vect.
Polynomial< T > Polynomial< T >::operator* | ( | const Polynomial< T > & | x | ) | const |
Definition at line 33 of file polynomial.cpp.
References max(), and Polynomial< T >::vect.
Polynomial< T > Polynomial< T >::operator- | ( | const Polynomial< T > & | x | ) | const |
Definition at line 43 of file polynomial.cpp.
References max(), and Polynomial< T >::vect.
Polynomial< T > Polynomial< T >::derive | ( | ) | const |
Definition at line 53 of file polynomial.cpp.
References Polynomial< T >::vect.
T Polynomial< T >::horner | ( | const T & | x | ) | const |
Definition at line 63 of file polynomial.cpp.
|
protected |
Definition at line 21 of file polynomial.h.
Referenced by Polynomial< T >::derive(), Polynomial< T >::operator*(), Polynomial< T >::operator+(), and Polynomial< T >::operator-().