Ticket #5711: trac_5711-doctest_fixes.patch

File trac_5711-doctest_fixes.patch, 1.7 KB (added by burcin, 10 years ago)

doctest fixes

  • sage/functions/other.py

    # HG changeset patch
    # User Burcin Erocal <burcin@erocal.org>
    # Date 1245763324 -7200
    # Node ID 3880361cfcff1779a5b0ae3886d9926f2e7e3284
    # Parent  abf80238d00f4d235be6774c158f17e1e26ab843
    Doctest fixes for #5711.
    
    diff --git a/sage/functions/other.py b/sage/functions/other.py
    a b  
    790790            \bar{x}
    791791            sage: f = function('f')
    792792            sage: latex(f(x).conjugate())
    793             \bar{\mbox{f}\left(x\right)}
     793            \bar{f\left(x\right)}
    794794            sage: x.conjugate().conjugate()
    795795            x
    796796            sage: x.conjugate().operator()
  • sage/symbolic/random_tests.py

    diff --git a/sage/symbolic/random_tests.py b/sage/symbolic/random_tests.py
    a b  
    202202
    203203        sage: from sage.symbolic.random_tests import *
    204204        sage: random_expr(50, nvars=3, coeff_generator=CDF.random_element)
    205         sinh(sinh(-coth(v2)/csch(-(0.615863165633 + 0.879368031485*I)*v1^2*v3) - gamma(pi) + floor(-(0.708874026302 - 0.954135400334*I)*v3)))^arcsech(-cosh(-arcsinh((0.0574954975369 - 0.917809644424*I)*(v2^2 - 0.723896589334 - 0.799038508886*I)*v1))/(-(1.04308121136 - 1.20890075541*I)*v2 - (1.45598591076 + 0.129560576376*I)*e))
     205        arctanh(arctanh(-arcsech(v2)/csch(-(0.615863165633 + 0.879368031485*I)*v1^2*v3) - gamma(pi) + floor(-(0.708874026302 - 0.954135400334*I)*v3)))^sinh(-cosh(-arcsinh((0.0574954975369 - 0.917809644424*I)*(v2^2 - 0.723896589334 - 0.799038508886*I)*v1))/(-(1.04308121136 - 1.20890075541*I)*v2 - (1.45598591076 + 0.129560576376*I)*e))
    206206        sage: random_expr(5, verbose=True)
    207207        About to apply exp to [pi]
    208208        About to apply <built-in function mul> to [e^pi, 1]