def dmp_max_norm(f, u, K):
 if (not u):
  return dup_max_norm(f, K)
 v = (u - 1)
 return max([dmp_max_norm(c, v, K) for c in f])

def dmp_max_norm ( f , u , K ) : if ( not u ) : return dup_max_norm ( f , K ) v = ( u - 1 ) return max ( [ dmp_max_norm ( c , v , K ) for c in f ] )
returns maximum norm of a polynomial in k[x] .