next up previous contents
Next: Deleting a Term: Up: The Implementation: Previous: Mergesort a Polynomial:

Find the Degree of the Polynomial:

This is just a matter of grabbing the head power.

    // *************************************** //
    // get the degree of the polynomial        //
    // *************************************** // 
unsigned int FLOAT_POLY::get_degree()
{
  if(head==NULL) return(0);
  else return(head->power);
}



Jim Peterson
1999-04-22