Ticket #12173: multrunc.patch

File multrunc.patch, 993 bytes (added by Jean-Pierre Flori, 10 years ago)

Modify doctest for _mul_trunc_opposite

  • sage/rings/polynomial/polynomial_zmod_flint.pyx

    # HG changeset patch
    # User Jean-Pierre Flori <jean-pierre.flor@ssi.gouv.fr>
    # Date 1338914196 -7200
    # Node ID 33b55f510a5b3431a30ce1c5cd46be7cecb395ff
    # Parent  f71aae6d4f4a07edbdbd324e3b37fc3e7a495fe0
    #12173: _mul_trunc_opposite returns a random lower part (as documented)
    
    diff --git a/sage/rings/polynomial/polynomial_zmod_flint.pyx b/sage/rings/polynomial/polynomial_zmod_flint.pyx
    a b  
    455455        EXAMPLES::
    456456
    457457            sage: P.<a>=GF(7)[]
    458             sage: a = P(range(10)); b = P(range(5, 15))
    459             sage: a._mul_trunc_opposite(b, 10)
     458            sage: b = P(range(10)); c = P(range(5, 15))
     459            sage: (b._mul_trunc_opposite(c, 10))[10:18]
    460460            5*a^17 + 2*a^16 + 6*a^15 + 4*a^14 + 4*a^13 + 5*a^10
    461             sage: a._mul_trunc_opposite(b, 18)
     461            sage: (b._mul_trunc_opposite(c, 18))[18:]
    462462            0
    463463
    464464        TESTS::