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 b  
    136136        sage: u = UK.an_element();  u
    137137        u0*u1
    138138        sage: u.value()
    139         -1/4*a^3 - 7/4*a^2 - 17/4*a - 19/4
     139        -1/4*a^3 + 7/4*a^2 - 17/4*a + 19/4     # 32-bit
     140        -1/4*a^3 - 7/4*a^2 - 17/4*a - 19/4     # 64-bit
    140141
    141142        sage: x = polygen(QQ)
    142143        sage: K.<a> = 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 b  
    972972            sage: S.S_class_group([K.ideal(2, a+1)])
    973973            []
    974974            sage: S.S_class_group([K.ideal(a)])
    975             [((2, -a + 1, 1/2*xbar + 1/2, -1/2*a*xbar + 1/2*a + 1), 6, 1/2*xbar - 3/2)] # 32-bit
     975            [((2, -a + 1, 1/2*xbar + 1/2, -1/2*a*xbar + 1/2*a + 1), 6, -1/2*xbar + 3/2)] # 32-bit
    976976            [((2, -a + 1, 1/2*xbar + 1/2, -1/2*a*xbar + 1/2*a + 1), 6, -1/2*xbar + 3/2)] # 64-bit
    977977
    978978        Now we take an example over a nontrivial base with two factors, each