Created
June 26, 2012 07:06
-
-
Save vcwu/2993987 to your computer and use it in GitHub Desktop.
Testing Addition
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
| for(int x = 1000; x < 5000; x += 500) | |
| { | |
| Poly* pol1 = new Poly(); | |
| Poly* pol2 = new Poly(); | |
| for(int i = 0; i < x; i++) | |
| { | |
| //This ensures that no terms are like, and nothing | |
| //will simplify. | |
| term t1(i+1, i+2, i+3); | |
| term t2(i+2, i+1, i+1); | |
| pol1->addTerm(t1); | |
| pol2->addTerm(t2); | |
| } | |
| cout << "Pol 1 terms: " << pol1->getTerms()->size() <<endl; | |
| cout << "Pol 2 terms: " << pol2->getTerms()->size() <<endl; | |
| cout << "Num of Operations: " << | |
| pol1->addPolyTest(*pol1, *pol2) << endl << endl; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment