Le 07/02/2011 13:05, Clemens Heuberger a écrit :
I encountered the following bug:

sage: abs(pi*I)
I*pi

I do not know how we define absolute value in Sage. Even in math in general, I'm not sure of what means the absolute value of a complex number. Depends on the data of a convex cone ?

I suppose that some Sage gurus will explain why abs(pi*I)=pi*I.

However as far as my knowledge in math is concerned, the "good" generalization of abs to the complex plane is the norm. sage: (pi*I).norm()

pi^2

This is the correct answer.

Hope it helps ...


Have a good afternoon
Laurent

--
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