Last active
January 20, 2018 18:30
-
-
Save drewxa/49f8f1fc59c9c3efe87fa5c0fd153d9d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <vector> | |
template <class T> | |
class Polynom | |
{ | |
Polynom(); | |
~Polynom(); | |
Polynom(const std::vector<T>& coef); | |
T& operator[](size_t); | |
const T& operator[](size_t) const; | |
size_t Degree() const; | |
bool operator == (const Polynom&) const; | |
Polynom& operator += (const Polynom&); | |
Polynom& operator -= (const Polynom&); | |
Polynom& operator *= (const Polynom&); | |
template <class CONST> | |
Polynom& operator *= (CONST c); | |
Polynom& operator /= (const Polynom&); | |
Polynom& operator %= (const Polynom&); | |
T operator()(const T&) const; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment