Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save vcwu/2994599 to your computer and use it in GitHub Desktop.
simplify tester actual _2
Poly* pol1 = new Poly();
for(int i =0; i< 3; i++)
{
term t1(5, 1, i);
pol1->addTerm(t1);
term t2(5, 1, i);
pol1->addTerm(t1);
pol1->addTerm(t2);
}
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