code: public void truncateZeros( double tol ) {
  
  //		double max = 0;
  //		for( int i = 0; i < size; i++ ) {
  //			double d = Math.abs(c[i]);
  //			if( d > max )
  //				max = d;
  //		}
  //
  //		tol *= max;
  
  		int i = size-1;
  
  		for( ; i >= 0; i-- ) {
  			if( Math.abs(c[i]) > tol )
  				break;
  		}
  		size = i+1;
  	}
docs: Prunes zero coefficients from the end of a sequence.  A coefficient is zero if its absolute value
  is less than or equal to tolerance.
  
  @param tol Tolerance for zero.  Try 1e-15