Ticket #11888: trac_11888-random-tests.patch

File trac_11888-random-tests.patch, 2.4 KB (added by benjaminfjones, 8 years ago)

fixes random tests after rebasing against #9130

  • sage/symbolic/random_tests.py

    # HG changeset patch
    # User Benjamin Jones <benjaminfjones@gmail.com>
    # Date 1329079539 21600
    # Node ID ca35b90a1c488ea3827deb4d96fb13ef3614f053
    # Parent  426f82c67a1ece819ccca67f3e9cda135bb373f1
    Trac 11888: fixes random tests after dependency #9130 is applied
    
    diff --git a/sage/symbolic/random_tests.py b/sage/symbolic/random_tests.py
    a b  
    2020        csc, csch, dickman_rho, dilog, dirac_delta, elliptic_e,
    2121        elliptic_ec, elliptic_eu, elliptic_f, elliptic_kc,
    2222        elliptic_pi, erf, exp, factorial, floor, heaviside, imag_part,
    23         integrate, kronecker_delta, log, polylog, real_part, sec,
    24         sech, sgn, sin, sinh, tan, tanh, unit_step, zeta, zetaderiv]
     23        integrate, kronecker_delta, lambert_w_branch, log, polylog,
     24        real_part, sec, sech, sgn, sin, sinh, tan, tanh, unit_step,
     25        zeta, zetaderiv]
    2526
    2627    Note that this doctest will fail whenever a Pynac function is added or
    2728    removed.  In that case, it is very likely that the doctests for
     
    234235        sage: from sage.symbolic.random_tests import *
    235236        sage: set_random_seed(2)
    236237        sage: random_expr(50, nvars=3, coeff_generator=CDF.random_element)
    237         (euler_gamma - v3^(-e) + (v2 - e^(-e/v2))^(((2.85879036573 -
    238         1.18163393202*I)*v2 + (2.85879036573 - 1.18163393202*I)*v3)*pi
    239         - 0.247786879678 + 0.931826724898*I)*arccsc((0.891138386848 -
     238        (euler_gamma - v3^(-e) + (v2 -
     239        factorial(-e/v2))^(((2.85879036573 - 1.18163393202*I)*v2 +
     240        (2.85879036573 - 1.18163393202*I)*v3)*pi - 0.247786879678 +
     241        0.931826724898*I)*arccsc((0.891138386848 -
    240242        0.0936820840629*I)/v1) - (0.553423153995 - 0.5481180572*I)*v3
    241243        + 0.149683576515 - 0.155746451854*I)*v1 + arccsch(pi +
    242         e)*elliptic_eu(khinchin*v2, 1.4656989704 + 0.863754357069*I)
     244        e)*elliptic_f(khinchin*v2, 1.4656989704 + 0.863754357069*I)
    243245        sage: random_expr(5, verbose=True)
    244         About to apply dilog to [1]
     246        About to apply dirac_delta to [1]
    245247        About to apply arcsec to [0]
    246         About to apply <built-in function add> to [1/6*pi^2, arcsec(0)]
    247         1/6*pi^2 + arcsec(0)
     248        About to apply <built-in function add> to [0, arcsec(0)]
     249        arcsec(0)
    248250    """
    249251    vars = [(1.0, sage.calculus.calculus.var('v%d' % (n+1))) for n in range(nvars)]
    250252    if ncoeffs is None: