normalize_symmetric#
- normalize_symmetric(expr, variable)#
Normalize a Laurent polynomial symmetrically in a single variable.
The result is centered and made symmetric under variable ↔ 1/variable, then the overall sign is chosen so the leading term is positive.
- Parameters:
expr (Expr) – SymPy expression.
variable (Symbol) – The variable to symmetrize.
- Returns:
Expr – Symmetrically normalized expression.
- Return type:
Expr