Bug in nth_root() for finite rings (related to p_adic printing)

20 views
Skip to first unread message

Bohua

unread,
Jun 26, 2012, 11:51:41 PM6/26/12
to sage-...@googlegroups.com
An example that triggers the bug is:

roots = mod(-1, 4489).nth_root(2, all=True)

Note 4489=67^2 and 67^2 is the first prime >62.

Following the hint given in the printed error, I changed the print mode near line 1168 of rings/finite_rings/integer_mod.pyx from 'digits' to 'bars'. This fixes the problem, but I don't know whether it will mess up something else.

Version 5.0.1 on Linux

David Roe

unread,
Jun 27, 2012, 3:07:58 PM6/27/12
to sage-...@googlegroups.com
Thanks for catching that.  #13172 is ready for review.
David
http://trac.sagemath.org/sage_trac/ticket/13172



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

Reply all
Reply to author
Forward
0 new messages