Skip to content

Instantly share code, notes, and snippets.

@vcwu
Created June 26, 2012 09:06
Show Gist options
  • Select an option

  • Save vcwu/2994575 to your computer and use it in GitHub Desktop.

Select an option

Save vcwu/2994575 to your computer and use it in GitHub Desktop.
simplifyTester_actual
fstream simp;
simp.open("simplify_test.txt");
Poly* pol1 = new Poly();
for(int i =0; i< 3; i++)
{
term t1(5, 1, 1);
pol1->addTerm(t1);
}
simp << *pol1 << endl;
simp << "Simplifies to: "
<< Poly(pol1->simplify()) << endl << endl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment