Ticket #10508: trac_10508_doctest.patch

File trac_10508_doctest.patch, 1.9 KB (added by vbraun, 9 years ago)

Updated patch

  • sage/misc/package.py

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1342098436 -7200
    # Node ID 8dc776cbe500636aedb215f84afd796fded3225b
    # Parent  08246f759e7f66ab8988775d2dac0bbf393f2c01
    Increase the tolerance for a test depending on ATLAS
    
    diff --git a/sage/misc/package.py b/sage/misc/package.py
    a b  
    117117    With no arguments, list the installed packages::
    118118
    119119        sage: install_package()
    120         ['atlas...', 'blas...', ...]
     120        ['atlas...', ...]
    121121
    122122    With an argument, install the named package::
    123123
  • sage/rings/polynomial/polynomial_element.pyx

    diff --git a/sage/rings/polynomial/polynomial_element.pyx b/sage/rings/polynomial/polynomial_element.pyx
    a b  
    10221022        polynomial 1 and have extra terms with coefficients close to zero. ::
    10231023       
    10241024            sage: R.<x> = RDF[]
     1025            sage: epsilon = RDF(1).ulp()*50   # Allow an error of up to 50 ulp
    10251026            sage: f = inverse_mod(x^2 + 1, x^5 + x + 1); f
    10261027            0.4*x^4 - 0.2*x^3 - 0.4*x^2 + 0.2*x + 0.8
    10271028            sage: poly = f * (x^2 + 1) % (x^5 + x + 1)
    10281029            sage: # Remove noisy zero terms:
    1029             sage: parent(poly)([ 0.0 if abs(c)<=1e-14 else c for c in poly.coeffs() ])
     1030            sage: parent(poly)([ 0.0 if abs(c)<=epsilon else c for c in poly.coeffs() ])
    10301031            1.0
    10311032            sage: f = inverse_mod(x^3 - x + 1, x - 2); f
    10321033            0.142857142857
     
    10361037            -0.0319636125...*x^3 - 0.0383269759...*x^2 - 0.0463050900...*x + 0.346479687...
    10371038            sage: poly = f*g % m
    10381039            sage: # Remove noisy zero terms:
    1039             sage: parent(poly)([ 0.0 if abs(c)<=1e-14 else c for c in poly.coeffs() ])
     1040            sage: parent(poly)([ 0.0 if abs(c)<=epsilon else c for c in poly.coeffs() ])
    10401041            1.0
    10411042
    10421043        ALGORITHM: Solve the system as + mt = 1, returning s as the inverse