On Nov 27, 2007 2:05 AM, michael <[EMAIL PROTECTED]> wrote: > > I'm not quite sure where to post this but I happened upon a strange > result. I was using sage to check my work when solving roots of a > polynomial mod 3^k. For mod 9 it is is not giving all the roots, yet > for the other powers I checked (up to 4) the results were correct. > > I am using version 2.8.9 on a mac w/ OSX > > Here is the code I was using: > input: > R=IntegerModRing(3^2) > A=PolynomialRing(R,'y') > y=A.gen() > f=10*y^2 - y^3 - 9; > f.roots(multiplicities=false) > > output: > [1,0] > > as can be checked directly, the other roots are 6 and 3
Thanks! I've created a trac ticket for this: http://trac.sagemath.org/sage_trac/ticket/1292 and marked it *critical* since it gives a mathematically incorrect answer. Good fodder for bug day this saturday... Robert Bradshaw: maybe you can fix this -- it seems like maybe code you wrote? -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---