Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Polynomial
  5. {
  6. unsigned int degree;
  7. double *coefficients;
  8. public:
  9. Polynomial(unsigned int n);
  10.  
  11. ~Polynomial();
  12.  
  13. void setCoefficients(unsigned int i, double val);
  14.  
  15. double getCoefficient(unsigned int i);
  16.  
  17. double value(double y);
  18.  
  19. friend ostream & operator<<(ostream & out, Polynomial & p);
  20.  
  21.  
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement