Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you may import controlunder a name convenient for you. Example :

sage: import sympy as sy

now you can use "sy" to access its components :

sage: z=sy.symbols("z")

And the resulting importation works as expected :

sage: z
z
sage: z._sage_()
z

Note that the name sympy is still used to name its objects ! sage: type(z) <class 'sympy.core.symbol.symbol'="">

And the name sympy is still unknown from your namespace :

sage: sympy.Lambda
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Input In [23], in <cell line: 1>()
----> 1 sympy.Lambda

NameError: name 'sympy' is not defined

you may import controlunder a name convenient for you. Example :

sage: import sympy as sy

now you can use "sy" to access its components :

sage: z=sy.symbols("z")

And the resulting importation works as expected :

sage: z
z
sage: z._sage_()
z

Note that the name sympy is still used to name its objects ! sage: type(z) <class 'sympy.core.symbol.symbol'="">

And the name sympy is still unknown from your namespace :

sage: sympy.Lambda
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Input In [23], in <cell line: 1>()
----> 1 sympy.Lambda

NameError: name 'sympy' is not defined

Details are in the reference.

you may import controlunder a name convenient for you. Example :

sage: import sympy as sy

now you can use "sy" to access its components :

sage: z=sy.symbols("z")

And the resulting importation works as expected :

sage: z
z
sage: z._sage_()
z

Note that the name sympy is still used to name its objects ! !

sage: type(z)
 <class 'sympy.core.symbol.symbol'="">

'sympy.core.symbol.Symbol'>

And the name sympy is still unknown from your namespace :

sage: sympy.Lambda
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Input In [23], in <cell line: 1>()
----> 1 sympy.Lambda

NameError: name 'sympy' is not defined

Details are in the reference.