diff --git a/src/sage/calculus/expr.py b/src/sage/calculus/expr.py index 236b46a94d9..0aa62851d24 100644 --- a/src/sage/calculus/expr.py +++ b/src/sage/calculus/expr.py @@ -3,6 +3,9 @@ """ from sage.misc.lazy_import import lazy_import +from sage.structure.element import is_Matrix +from sage.symbolic.expression import Expression +from sage.symbolic.ring import SR lazy_import('sage.modules.free_module_element', ['vector', 'FreeModuleElement']) lazy_import('sage.matrix.constructor', 'matrix') @@ -163,10 +166,6 @@ def symbolic_expression(x): TypeError: unable to convert to a symbolic expression """ - from sage.structure.element import is_Matrix - from sage.symbolic.expression import Expression - from sage.symbolic.ring import SR - if isinstance(x, Expression): return x elif hasattr(x, '_symbolic_'):