Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Author: Chris Christoff
- // Current Build: 4.2.3
- // Last build time: 8:55 A.M/ 6/12/2012
- class quadratic {
- public:
- struct fStruct {
- double coeffs[3]; //a, b, c coefficients
- };
- struct rootStruct {
- double roots[2]; //room for two roots
- };
- public:
- quadratic();
- fStruct readCoeffs();
- double discr(fStruct);
- double f(fStruct, double);
- double bisect(double, double, double, fStruct, bool&);
- void toFile(fStruct, rootStruct);
- void toScreen(fStruct);
- void linear(fStruct, double);
- void QuickTest(double a, double b, double c);
- };
Advertisement
Add Comment
Please, Sign In to add comment