On Tue, 2 Feb 2010 20:34:58 -0800, Nick Alexander <ncalexan...@gmail.com> wrote:
> > sage: d = M.determinant()
> > sage: d.norm().abs()       # take norm to get an integer
> > 712483534798848
> 
> I thought of this as well, but it could be wrong since there might be  
> an element of the appropriate norm in the cyclotomic field that is  
> erroneously returned!  I suggest QQ(d).abs() :)

Good point.  I like QQ(d).abs().


Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to