-
-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
factor returns a reducible factor, #7736
Comments
comment:1
Ultimately factorization over number fields are done by PARI. Looking at g.factor?? you see that the factorization is ultimately handled by PARI after some manipulations to account for denominators in the defining polynomial for the number field. So it's likely that the bug is actually in PARI. But we'll see. If I were debugging this I would put some print statements in the factor function to see exactly what is passed off to pari and see if pari is buggy. If so, report upstream, after trying the latest svn version. William |
comment:3
This might be the same as #7097? |
This comment has been minimized.
This comment has been minimized.
comment:4
It may well be that the short-term fix I put in at #7097 is not yet good enough. [It is short-term since the latest version of pari have fixed some bugs which arose for non-monic polynomials, which is why the patch I put in at #7097 made sure that pari was only called to factor monic ones.] I just had a possibly worse example, and found this ticket while looking to see if I should open a new one:
I factor a degree 40 polynomial and the returned factors have degrees 1,3,9,40!
|
comment:5
There's an SPKG for the new PARI at #8453 which fixes John's problem, but not the one reported in the summary. |
comment:6
The following script confirms that all is well using either nffactor() or factornf() in
(latest svn pari version as of 2010-06-26):
Explanation: fm is f made monic and integral which is required for construction of number fields. We check that both f and fm factor correctly over the number field defined by f (which we have to construct using fm): factors have degrees 1,1,10. Note that we have to change variables before factoring, otherwise we get an error; and that the factornf functions require more than the default memory allocation. This is good news since right now a few feet from me William and Robert B are spending the day making this version of pari into an new spkg (see #9343). |
Changed keywords from none to number field pari |
comment:7
I have now checked that the work at #9343 completely fixes this bug. So when that goes in, this can be changed. |
comment:10
I assume this is still fixed by #9343. If not, please reopen this. |
Here is a result that confuses me (appologies for not having a simpler example for this):
Here f turns out to be a degree 12 polynomial, and when you factor it over K, you get a linear factor and a degree 11 factor. However, degree 11 factor in this case is not irreducible. In fact, if you continue with
you get a linear factor and a degree 10 factor, where both are irreducible.
I fear it is no good asking for an upstream fix, since they (pari) have already fixed it but we are not using the fixed version. See #7097 for more details.
CC: @categorie @williamstein
Component: factorization
Keywords: number field pari
Issue created by migration from https://trac.sagemath.org/ticket/7736
The text was updated successfully, but these errors were encountered: