__all__ = [
'Expression',
- 'Symbol', 'symbols', 'Dummy',
+ 'Symbol', 'Dummy', 'symbols',
'Rational',
]
raise TypeError('expr must be a sympy.Symbol instance')
-def symbols(names):
- if isinstance(names, str):
- names = names.replace(',', ' ').split()
- return tuple(Symbol(name) for name in names)
-
-
class Dummy(Symbol):
__slots__ = (
return isinstance(other, Dummy) and self._index == other._index
+def symbols(names):
+ if isinstance(names, str):
+ names = names.replace(',', ' ').split()
+ return tuple(Symbol(name) for name in names)
+
+
class Rational(Expression):
__slots__ = (