William Stein wrote:
> 
> In case my response above was ambiguous, I'm very much in favor of their
> being a way to change how the symbolic I prints.  Wait a minute, I just 
> realized
> that I designed and imlemented a very nice way to do this sort of thing over
> THREE YEARS ago, but nobody ever seemed to use it.  Check this, which has
> worked (more generically) since Sage-1.0:
> 
> sage: I.rename('_j')
> sage: I
> _j
> sage: expand((1+i)^2)
> 2*_j
> sage: expand((2+3*i)^2)
> 12*_j - 5
> 
> You can actually rename most anything that isn't defined by Cython code:
> 
> sage: f = sin(2*I) + cos(3*x); f
> cos(3*x) + _j*sinh(2)
> sage: f.rename('fred')
> sage: f
> fred

Nice.  So to get the other (easy) part of the request:

sage: _j = I
sage: _j
I
sage: _j.rename("_j")
sage: _j
_j
sage: sqrt(-1)
_j
sage: _j^2
-1


Thanks William!  One of these days, we'll catch up to what you did years 
ago :).

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