Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Polynomial
- {
- unsigned int degree;
- double *coefficients;
- public:
- Polynomial(unsigned int n);
- ~Polynomial();
- void setCoefficients(unsigned int i, double val);
- double getCoefficient(unsigned int i);
- double value(double y);
- friend ostream & operator<<(ostream & out, Polynomial & p);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement