reciprocal#
- reciprocal(expr, var)#
Return the reciprocal transform of a polynomial in a given variable.
Applies the substitution var → var**(-1) and expands.
- Parameters:
expr (Expr) – SymPy expression.
var (Symbol | str) – The variable to invert (Symbol or its name).
- Returns:
Expr – The transformed expression.
- Return type:
Expr