private static int[] multWithMonomial(int[] a,int k){
  int d=computeDegree(a);
  if (d == -1) {
    return new int[1];
  }
  int[] result=new int[d + k + 1];
  System.arraycopy(a,0,result,k,d + 1);
  return result;
}

private static int [ ] multWithMonomial ( int [ ] a , int k ) { int d = computeDegree ( a ) ; if ( d == - 1 ) { return new int [ 1 ] ; } int [ ] result = new int [ d + k + 1 ] ; System . arraycopy ( a , 0 , result , k , d + 1 ) ; return result ; }
compute the product of a polynomial with a monomial x ^ k .
