Ticket #14423: trac_14423_python_274.patch

File trac_14423_python_274.patch, 761 bytes (added by vbraun, 8 years ago)

Initial patch

  • sage/misc/prandom.py

    # HG changeset patch
    # User Volker Braun <vbraun.name@gmail.com>
    # Date 1365515080 -3600
    # Node ID 654e198bb9647c010ac9619b76b02ce3331ad3bb
    # Parent  0399181d5e5197389d2ec99b14ed43e02c016ab0
    Doctest fix for Python-2.7.4
    
    diff --git a/sage/misc/prandom.py b/sage/misc/prandom.py
    a b  
    317317
    318318    EXAMPLES::
    319319
    320         sage: [vonmisesvariate(1.0r, 3.0r) for i in range(1, 5)]
    321         [0.8983286393554258, 0.6718030007041285, 2.0308777524813397, 1.714325253725145...]
     320        sage: [vonmisesvariate(1.0r, 3.0r) for i in range(1, 5)]  # abs tol 1e-12
     321        [0.898328639355427, 0.6718030007041281, 2.0308777524813393, 1.714325253725145]
    322322    """
    323323    return _pyrand().vonmisesvariate(mu, kappa)
    324324