David, I am trying the fix the doctests bug in sage/graphs/generic_graph.py where M is assigned the character table of a group. Obviously det(M) can only be correct up to a sign, as we have no control over the order of rows and/or columns of M.
So this is actually a doctests-specific probem: if I do abs (-712483534798848) at the sage prompt, I don't get 7.12483534798848e14, I get 712483534798848, and this is mighty annoying... Dima On Feb 3, 10:32 am, David Joyner <wdjoy...@gmail.com> wrote: > On Tue, Feb 2, 2010 at 9:26 PM, Dima Pasechnik <dimp...@gmail.com> wrote: > > ... > > sage: abs(M.determinant()) > > Expected: > > 712483534798848 > > Got: > > 7.12483534798848e14 > > I vaguely remember that M.det() is only well-defined up to sign. > You could rewrite the test to avoid abs, but I'm wondering if abs is the > reason scientific notation is used here. Do you know? > > > > > > > I can use an if to fix the sign, but them I am afraid I miss some > > obvious > > better way... > > > Thanks, > > Dima > > > -- > > 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 > > athttp://groups.google.com/group/sage-devel > > URL:http://www.sagemath.org -- 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