Ticket #8896: 8896-doctests.patch

File 8896-doctests.patch, 3.3 KB (added by robertwb, 8 years ago)
  • doc/en/numerical_sage/numpy.rst

    diff -r 2d3d779114de -r f644ea0d09e3 doc/en/numerical_sage/numpy.rst
    a b  
    3939    array([1099511627776, 12157665459056928801, 1208925819614629174706176], dtype=object)
    4040    sage: a=2.0000000000000000001                               
    4141    sage: a.prec() # higher precision than hardware floating point numbers
    42     67
     42    70
    4343    sage: numpy.array([a,2*a,3*a])
    44     array([2.000000000000000000, 4.000000000000000000, 6.000000000000000000], dtype=object)
     44    array([2.0000000000000000001, 4.0000000000000000002, 6.0000000000000000003], dtype=object)
    4545
    4646
    4747The ``dtype`` attribute of an array tells you the type of the array.
  • doc/en/reference/coercion.rst

    diff -r 2d3d779114de -r f644ea0d09e3 doc/en/reference/coercion.rst
    a b  
    5151    True
    5252    sage: ZZ
    5353    Integer Ring
    54     sage: parent(1.50000000000000000000000000000000000)
     54    sage: parent(1.5000000000000000000000000000000000)
    5555    Real Field with 120 bits of precision
    5656    sage: parent(x)
    5757    Symbolic Ring
  • sage/combinat/combinat.py

    diff -r 2d3d779114de -r f644ea0d09e3 sage/combinat/combinat.py
    a b  
    18431843        sage: hurwitz_zeta(11/10,1/2,6)
    18441844        12.1041000000000
    18451845        sage: hurwitz_zeta(11/10,1/2,50)
    1846         12.10381349568375510570907741296668061903364861809
     1846        12.103813495683755105709077412966680619033648618089
    18471847   
    18481848    REFERENCES:
    18491849
  • sage/functions/transcendental.py

    diff -r 2d3d779114de -r f644ea0d09e3 sage/functions/transcendental.py
    a b  
    520520        sage: dickman_rho(10)
    521521        2.77017183772596e-11
    522522        sage: dickman_rho(10.00000000000000000000000000000000000000)
    523         2.77017183772595898875812120063434232634e-11
     523        2.770171837725958988758121200634342326343e-11
    524524        sage: plot(log(dickman_rho(x)), (x, 0, 15))
    525525   
    526526    AUTHORS:
  • sage/graphs/generic_graph.py

    diff -r 2d3d779114de -r f644ea0d09e3 sage/graphs/generic_graph.py
    a b  
    1193711937            sage: Graph()._layout_bounding_box( {0: [3,5], 1: [2,7], 2: [-4,2] } )
    1193811938            [-4, 3, 2, 7]
    1193911939            sage: Graph()._layout_bounding_box( {0: [3,5], 1: [3.00000000001,4.999999999999999] } )
    11940             [2, 4.00000000001000, 4.00000000000000, 6]
     11940            [2, 4.00000000001000, 3.999999999999999, 6]
    1194111941        """
    1194211942        xs = [pos[v][0] for v in pos]
    1194311943        ys = [pos[v][1] for v in pos]
  • sage/symbolic/expression.pyx

    diff -r 2d3d779114de -r f644ea0d09e3 sage/symbolic/expression.pyx
    a b  
    55105510            sage: maxima('cosh(1.0)')
    55115511            1.543080634815244
    55125512            sage: SR(1.00000000000000000000000000).cosh()
    5513             1.5430806348152437784779056
     5513            1.54308063481524377847790562
    55145514            sage: SR(RIF(1)).cosh()
    55155515            1.543080634815244?
    55165516