chriscct1

header

Jun 13th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. // Author: Chris Christoff
  2. // Current Build: 4.2.3
  3. // Last build time: 8:55 A.M/ 6/12/2012
  4.  
  5. class quadratic {
  6. public:
  7. struct fStruct {
  8. double coeffs[3]; //a, b, c coefficients
  9. };
  10.  
  11. struct rootStruct {
  12. double roots[2]; //room for two roots
  13. };
  14.  
  15. public:
  16. quadratic();
  17. fStruct readCoeffs();
  18. double discr(fStruct);
  19. double f(fStruct, double);
  20. double bisect(double, double, double, fStruct, bool&);
  21. void toFile(fStruct, rootStruct);
  22. void toScreen(fStruct);
  23. void linear(fStruct, double);
  24. void QuickTest(double a, double b, double c);
  25. };
Advertisement
Add Comment
Please, Sign In to add comment