Tim Lahey wrote:
> 
> The only problem I see with this is that it doesn't free up the 
> original. One
> reason for changing the symbolic I, is to be able to use it for other 
> variables.


Sure it does:

sage: _j = I
sage: _j.rename("_j")
sage: var("I")
I
sage: type(I)
<class 'sage.calculus.calculus.SymbolicVariable'>
sage: I^2
I^2
sage: type(_j)
<class 'sage.functions.constants.I_class'>
sage: _j^2
-1


In fact, you could go one further.  "I" is just defined by:

I = sage.functions.I_class()

(in sage/functions/constants.py).  So you could just do:

sage: _j = sage.functions.constants.I_class()

and not even touch the global I variable.  Then assign I to be whatever 
you want, whenever you want.

Jason


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to