On 03/29/2010 07:23 AM, Jason Grout wrote:
On the other hand, I think it would fairly straightforward for QQbar objects to print out quadratic roots (that it knows are quadratic roots) in the above format (using the quadratic equation), instead of using the interval notation. It'd probably one or two if-cases in the printing code.
See http://trac.sagemath.org/sage_trac/ticket/8626 for a short patch which implements this in simple cases, so we get:
sage: QQbar(sqrt(5)) sqrt(20)/2 sage: m=matrix(2,2,[0,1,1,1]);m [0 1] [1 1] sage: m.eigenvalues() [(1-sqrt(5))/2, (1+sqrt(5))/2] sage: Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.