On May 22, 2010, at 8:05 AM, Mike Witt wrote:

I just thought I'd try this question one more time:

On May 20, 10:59 am, Mike Witt wrote:
Is there any way to make the square root of -1 display lower case
i rather than I (at least for latex output)?

Sage complex numbers already print out that way.

sage: latex(CDF(1,1))
1.0 + 1.0i
sage: latex(CC(1,1))
1.00000000000000 + 1.00000000000000i
sage: latex(sqrt(-1))
I

The symbolic I doesn't, however, though I think that would be an easy and worthwhile change. For now you could do something like

sage: latex(1 + sqrt(-1)).replace('I', 'i')
'i + 1'

(though of course this will replace any capital I).

- Robert

--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to