This was reported by Niels Lubbes as Sage bug on
sage-...@googlegroups.com:
gp> t; nf = nfinit(a^4 - a^2 + 1);
gp> poly = t^3 + (-4*a^3 + 2*a)*t^2 - 11/3*a^2*t + 2/3*a^3 - 4/3*a
%1 = t^3 + (-4*a^3 + 2*a)*t^2 - 11/3*a^2*t + (2/3*a^3 - 4/3*a)
gp> F = nffactor(nf, poly)
%2 =
[t + Mod(-2*a^3 + a, a^4 - a^2 + 1) 1]
[t^2 + Mod(-2*a^3 + a, a^4 - a^2 + 1)*t + Mod(-2/3*a^2, a^4 - a^2 + 1) 1]
However, the second factor is reducible:
gp> nffactor(nf, F[2,1])
%3 =
[t + Mod(-4/3*a^3 + 2/3*a, a^4 - a^2 + 1) 1]
[t + Mod(-2/3*a^3 + 1/3*a, a^4 - a^2 + 1) 1]
Cheers,
Jeroen.
Yes, it is a bug. The problem is with the upstream package PARI/GP.
True. I never understood why there exists nffactor() and factornf()
which do the same thing (but apparently with different implementations!)
Jeroen.
According to Karim, one of these is now obsolete and should not be
used. But I can never remember which....
John
>
> Jeroen.
>
> --
> 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
>
Open a new one. This is closed an apparently fixed - don't reopen it. But put a
link to the other ticket if that seem appropiate
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
Dave
I would say: let's wait and see what upstream says (I will keep an eye
on the PARI bug).
Jeroen.
But surely if a bug is found, it should be on trac.
Dave
Should a PARI bug be on the Sage Trac? What's the point if it already
was reported to PARI?
Anyway, if you want you can go ahead and make the ticket but there is
not much we can do anyway besides waiting for PARI to fix the problem...
Jeroen.
I think the point is that another Sage user might come up against the
bug without knowing that it was caused by an upstream bug.
>
> Anyway, if you want you can go ahead and make the ticket but there is
> not much we can do anyway besides waiting for PARI to fix the problem...
>
When the bug is fixed upstream, Sage will have to change -- by
upgrading its PARI spkg. And that needs a ticket!