Skip to content

Commit 79ed9e5

Browse files
author
Release Manager
committed
Trac #33160: update Singular to 4.3.1
The previous update was on #32907 See https://www.singular.uni-kl.de/Manual/4-3-0/sing_2998.htm - in particular, Flint 2.8 is supported. This ticket also serves as the new target ticket for Singular's ci-sage after Singular/Singular#1131 URL: https://trac.sagemath.org/33160 Reported by: dimpase Ticket author(s): Matthias Koeppe, Michael Orlitzky, Dima Pasechnik Reviewer(s): Dima Pasechnik, Matthias Koeppe
2 parents 4cc4817 + 9cb5807 commit 79ed9e5

File tree

5 files changed

+24
-30
lines changed

5 files changed

+24
-30
lines changed

build/pkgs/singular/checksums.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tarball=singular-VERSION.tar.gz
2-
sha1=f257a0ef23cedb2c8f9514bbc5f292ca3660a244
3-
md5=8b9142f42cb73aede3940ef3c5f9586d
4-
cksum=2019987428
5-
upstream_url=ftp://jim.mathematik.uni-kl.de/pub/Math/Singular/SOURCES/4-2-1/singular-VERSION.tar.gz
2+
sha1=6c2b622d3681e2de3d58d30c654d43d3e32b720c
3+
md5=abb1e37c794472e7760655358ab66054
4+
cksum=17455733
5+
upstream_url=ftp://jim.mathematik.uni-kl.de/pub/Math/Singular/SOURCES/4-3-1/singular-VERSION.tar.gz
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2.1p3
1+
4.3.1p1

build/pkgs/singular/patches/1128.patch

-22
This file was deleted.

src/sage/rings/polynomial/hilbert.pyx

+5-3
Original file line numberDiff line numberDiff line change
@@ -576,11 +576,13 @@ def hilbert_poincare_series(I, grading=None):
576576
sage: hilbert_poincare_series(J).denominator().factor()
577577
(t - 1)^14
578578
579-
This example exceeded the capabilities of Singular before version 4.2.1p2::
579+
This example exceeded the capabilities of Singular before version 4.2.1p2.
580+
In Singular 4.3.1, it works correctly on 64-bit, but on 32-bit, it prints overflow warnings
581+
and omits some terms.
580582
581583
sage: J.hilbert_numerator(algorithm='singular')
582-
120*t^33 - 3465*t^32 + 48180*t^31 - 429374*t^30 + 2753520*t^29 - 13522410*t^28 + 52832780*t^27 - 168384150*t^26 + 445188744*t^25 - 987193350*t^24 + 1847488500*t^23 + 1372406746*t^22 - 403422496*t^21 - 8403314*t^20 - 471656596*t^19 + 1806623746*t^18 + 752776200*t^17 + 752776200*t^16 - 1580830020*t^15 + 1673936550*t^14 - 1294246800*t^13 + 786893250*t^12 - 382391100*t^11 + 146679390*t^10 - 42299400*t^9 + 7837830*t^8 - 172260*t^7 - 468930*t^6 + 183744*t^5 - 39270*t^4 + 5060*t^3 - 330*t^2 + 1
583-
584+
120*t^33 - 3465*t^32 + 48180*t^31 - 429374*t^30 + 2753520*t^29 - 13522410*t^28 + 52832780*t^27 - 168384150*t^26 + 445188744*t^25 - 987193350*t^24 + 1847488500*t^23 + 1372406746*t^22 - 403422496*t^21 - 8403314*t^20 - 471656596*t^19 + 1806623746*t^18 + 752776200*t^17 + 752776200*t^16 - 1580830020*t^15 + 1673936550*t^14 - 1294246800*t^13 + 786893250*t^12 - 382391100*t^11 + 146679390*t^10 - 42299400*t^9 + 7837830*t^8 - 172260*t^7 - 468930*t^6 + 183744*t^5 - 39270*t^4 + 5060*t^3 - 330*t^2 + 1 # 64-bit
585+
...120*t^33 - 3465*t^32 + 48180*t^31 - ... # 32-bit
584586
"""
585587
cdef Polynomial_integer_dense_flint HP
586588
HP, grading = first_hilbert_series(I, grading=grading, return_grading=True)

src/sage/rings/polynomial/multi_polynomial_ideal.py

+14
Original file line numberDiff line numberDiff line change
@@ -2902,6 +2902,20 @@ def hilbert_numerator(self, grading = None, algorithm = 'sage'):
29022902
sage: I = Ideal([x^3*y^2 + 3*x^2*y^2*z + y^3*z^2 + z^5])
29032903
sage: I.hilbert_numerator()
29042904
-t^5 + 1
2905+
2906+
Our two algorithms should always agree; not tested until
2907+
:trac:`33178` is fixed::
2908+
2909+
sage: m = ZZ.random_element(2,8) # not tested
2910+
sage: nvars = m^2 # not tested
2911+
sage: R = PolynomialRing(QQ, "x", nvars) # not tested
2912+
sage: M = matrix(R, m, R.gens()) # not tested
2913+
sage: I = R.ideal(M.minors(2)) # not tested
2914+
sage: n1 = I.hilbert_numerator() # not tested
2915+
sage: n2 = I.hilbert_numerator(algorithm='singular') # not tested
2916+
sage: n1 == n2 # not tested
2917+
True
2918+
29052919
"""
29062920
if not self.is_homogeneous():
29072921
raise TypeError("Ideal must be homogeneous.")

0 commit comments

Comments
 (0)