def dup_mul_ground(f, c, K):
 if ((not c) or (not f)):
  return []
 else:
  return [(cf * c) for cf in f]

def dup_mul_ground ( f , c , K ) : if ( ( not c ) or ( not f ) ) : return [ ] else : return [ ( cf * c ) for cf in f ]
multiply f by a constant value in k[x] .