@public
def LT(f, *gens, **args):
 options.allowed_flags(args, ['polys'])
 try:
  (F, opt) = poly_from_expr(f, *gens, **args)
 except PolificationFailed as exc:
  raise ComputationFailed('LT', 1, exc)
 (monom, coeff) = F.LT(order=opt.order)
 return (coeff * monom.as_expr())

@ public def LT ( f , * gens , ** args ) : options . allowed_flags ( args , [ 'polys' ] ) try : ( F , opt ) = poly_from_expr ( f , * gens , ** args ) except PolificationFailed as exc : raise ComputationFailed ( 'LT' , 1 , exc ) ( monom , coeff ) = F . LT ( order = opt . order ) return ( coeff * monom . as_expr ( ) )
return the leading term of f .