Unit.
canonical_variables
¶Return a dictionary mapping any variable defined in
self.variables
as underscore-suffixed numbers
corresponding to their position in self.variables
. Enough
underscores are added to ensure that there will be no clash with
existing free symbols.
Examples
>>> from sympy import Lambda
>>> from sympy.abc import x
>>> Lambda(x, 2*x).canonical_variables
{x: 0_}