laurent_to_tuples#

laurent_to_tuples(expr, variables=None)#
Return a list of (exponents, coefficient) where:
  • exponents is a tuple of Rational exponents (one per variable),

  • coefficient is the remaining factor (may be symbolic),

assuming all true variables are included in variables if given.

Parameters:
  • expr (Expr | Poly)

  • variables (Iterable[Symbol] | Symbol | None)

Return type:

tuple