#NEWLINE# def monomial_max( * monoms ) : #NEWLINE# #INDENT# '\n    Returns maximal degree for each variable in a set of monomials.\n\n    Consider monomials `x**3*y**4*z**5`, `y**5*z` and `x**6*y**3*z**9`.\n    We wish to find out what is the maximal degree for each of `x`, `y`\n    and `z` variables::\n\n        >>> from sympy.polys.monomials import monomial_max\n\n        >>> monomial_max((3,4,5), (0,5,1), (6,3,9))\n        (6, 5, 9)\n\n    ' #NEWLINE# M = list ( N [ 0 ] ) #NEWLINE# for N in monoms [ 1 : ] : #NEWLINE# #INDENT# for ( i , n ) in enumerate ( N ) : #NEWLINE# #INDENT# M [ i ] = max ( M [ i ] , n ) #NEWLINE# #UNINDENT# #UNINDENT# return tuple ( M )