Ticket #1292 (closed defect: fixed)
[with patch] bug in polynomial root finding mod n
| Reported by: | was | Owned by: | cwitty |
|---|---|---|---|
| Priority: | critical | Milestone: | sage-2.8.15 |
| Component: | basic arithmetic | Keywords: | |
| Cc: | Author(s): | ||
| Report Upstream: | Reviewer(s): | ||
| Merged in: | Work issues: |
Description
This was reported by michael to sage-devel on Nov 27, 2007. It's a genuine bug which gives incorrect mathematical results (hence the critical marking).
R=IntegerModRing(3^2) A=PolynomialRing(R,'y') y=A.gen() f=10*y^2 - y^3 - 9; f.roots(multiplicities=false) /// [1, 0]
print [k for k in R if f(k) == 0] /// [0, 1, 3, 6]
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

