-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
resultant over GF(q)[t][x] is plain wrong!!! #13672
Comments
comment:2
with the modified
then Paul |
comment:3
This seems to be a bug in Pari or our conversion to Pari: sage: R.<t> = GF(2)[]; S.<x> = R[]
sage: f=(t^2 + t)*x + t^2 + t; g=(t + 1)*x + t^2
sage: f.resultant(g)
t^3 + t
sage: f._pari_().polresultant(g._pari_(), x._pari_(), 0)
Mod(1, 2)*x^3 + Mod(1, 2)*x
sage: Q = PolynomialRing(GF(2), f.parent().variable_names_recursive())
sage: Q(f).resultant(Q(g),variable=Q(x))
t^4 + t Note that variable = self.parent().gen()
if str(variable)<>'x' and self.parent()._mpoly_base_ring()<>self.parent().base_ring():
# use multivariate instead and this works: sage: R.<t> = GF(2)[]; S.<y> = R[]
sage: f=(t^2 + t)*y + t^2 + t; g=(t + 1)*y + t^2
sage: f.resultant(g)
t^4 + t I don't understand why this |
comment:4
Martin, indeed the documentation says that
In the contrary it seems that using Paul |
comment:5
Paul, I guess that means we should ask on [sage-devel] whether anyone objects to using Singular always in this case? Or even better to explain why Pari fails here (?) |
comment:6
Martin, it would be better to understand why Paul |
comment:7
Replying to @zimmermann6:
But it seems that PARI/GP can compute resultants w.r.t. a different variable:
|
Author: Jeroen Demeyer |
Attachment: 13672_pari_resultant.patch.gz |
This comment has been minimized.
This comment has been minimized.
comment:9
thank you Jeroen for fixing this! Paul |
Reviewer: Paul Zimmermann |
Merged: sage-5.7.beta0 |
Consider the following:
This is wrong: the resultant of
f
andg
ist^4+t
.Plenty of failures can be found with the following code which computes the resultant as the determinant of the Sylvester matrix:
Apply
13672_pari_resultant.patch
CC: @JohnCremona @williamstein @malb @robertwb @miguelmarco @simon-king-jena @saraedum
Component: commutative algebra
Author: Jeroen Demeyer
Reviewer: Paul Zimmermann
Merged: sage-5.7.beta0
Issue created by migration from https://trac.sagemath.org/ticket/13672
The text was updated successfully, but these errors were encountered: