# Ticket #13687: 13687_32bitfix.patch

File 13687_32bitfix.patch, 1.5 KB (added by Volker Braun, 10 years ago)

Initial patch

• ## sage/rings/number_field/unit_group.py

```# HG changeset patch
# User Volker Braun <vbraun.name@gmail.com>
# Date 1359496817 0
# Node ID 9b5e5aeffc936ea4ee1d083c79eb398e8f31c6c2
# Parent  35615722fd3e6d0aed6e37164f7318ac8cfe872e
Fix some doctests that are different on 32-bit

diff --git a/sage/rings/number_field/unit_group.py b/sage/rings/number_field/unit_group.py```
 a sage: u = UK.an_element();  u u0*u1 sage: u.value() -1/4*a^3 - 7/4*a^2 - 17/4*a - 19/4 -1/4*a^3 + 7/4*a^2 - 17/4*a + 19/4     # 32-bit -1/4*a^3 - 7/4*a^2 - 17/4*a - 19/4     # 64-bit sage: x = polygen(QQ) sage: K. = NumberField(x^4 + 23)
• ## sage/rings/polynomial/polynomial_quotient_ring.py

`diff --git a/sage/rings/polynomial/polynomial_quotient_ring.py b/sage/rings/polynomial/polynomial_quotient_ring.py`
 a sage: S.S_class_group([K.ideal(2, a+1)]) [] sage: S.S_class_group([K.ideal(a)]) [((2, -a + 1, 1/2*xbar + 1/2, -1/2*a*xbar + 1/2*a + 1), 6, 1/2*xbar - 3/2)] # 32-bit [((2, -a + 1, 1/2*xbar + 1/2, -1/2*a*xbar + 1/2*a + 1), 6, -1/2*xbar + 3/2)] # 32-bit [((2, -a + 1, 1/2*xbar + 1/2, -1/2*a*xbar + 1/2*a + 1), 6, -1/2*xbar + 3/2)] # 64-bit Now we take an example over a nontrivial base with two factors, each