@public
def degree_list(f, *gens, **args):
 options.allowed_flags(args, ['polys'])
 try:
  (F, opt) = poly_from_expr(f, *gens, **args)
 except PolificationFailed as exc:
  raise ComputationFailed('degree_list', 1, exc)
 degrees = F.degree_list()
 return tuple(map(Integer, degrees))

@ public def degree_list ( f , * gens , ** args ) : options . allowed_flags ( args , [ 'polys' ] ) try : ( F , opt ) = poly_from_expr ( f , * gens , ** args ) except PolificationFailed as exc : raise ComputationFailed ( 'degree_list' , 1 , exc ) degrees = F . degree_list ( ) return tuple ( map ( Integer , degrees ) )
return a list of degrees of f in all variables .