예제 #1
0
 public Polynomial()
 {
     // zero polynomial
     Head = null;
 }
예제 #2
0
 public Polynomial(int coefficient, int power)
 {
     Head = new Term(coefficient, power, null);
 }
예제 #3
0
 public Term(int coefficient, int power, Term next)
 {
     Coefficient = coefficient;
     Power       = power;
     Next        = next;
 }