Ticket #9130: trac_9130_beta_function.3.patch

File trac_9130_beta_function.3.patch, 1.8 KB (added by ktkohl, 8 years ago)

include beta in random_tests

  • sage/symbolic/random_tests.py

    # HG changeset patch
    # User Karen T. Kohl <ktkohl96@gmail.com>
    # Date 1326209996 21600
    # Node ID a3d0b4f386e9f57ce59dbfef61b67de77ee615aa
    # Parent  85b045143057e5da2aaac4f05fb3afca74e4b7aa
    Trac 9130:  beta function --include in radom tests
    Trac 9130:  beta function--include in random tests
    
    diff --git a/sage/symbolic/random_tests.py b/sage/symbolic/random_tests.py
    a b  
    1616        sage: [f for (one,f,arity) in _mk_full_functions()]
    1717        [Ei, abs, arccos, arccosh, arccot, arccoth, arccsc, arccsch,
    1818        arcsec, arcsech, arcsin, arcsinh, arctan, arctan2, arctanh,
    19         binomial, ceil, conjugate, cos, cosh, cot, coth, csc, csch,
     19        beta, binomial, ceil, conjugate, cos, cosh, cot, coth, csc, csch,
    2020        dickman_rho, dilog, dirac_delta, elliptic_e, elliptic_ec,
    2121        elliptic_eu, elliptic_f, elliptic_kc, elliptic_pi, erf, exp,
    2222        factorial, floor, heaviside, imag_part, integrate,
     
    237237        (euler_gamma - v3^(-e) + (v2 - factorial(-e/v2))^(((2.85879036573 - 1.18163393202*I)*v2 + (2.85879036573 - 1.18163393202*I)*v3)*pi - 0.247786879678 + 0.931826724898*I)*arccsc((0.891138386848 - 0.0936820840629*I)/v1) - (0.553423153995 - 0.5481180572*I)*v3 + 0.149683576515 - 0.155746451854*I)*v1 + arccsch(pi + e)*elliptic_f(khinchin*v2, 1.4656989704 + 0.863754357069*I)
    238238        sage: random_expr(5, verbose=True)
    239239        About to apply dirac_delta to [1]
    240         About to apply arccsch to [0]
    241         About to apply <built-in function add> to [0, arccsch(0)]
    242         arccsch(0)
     240        About to apply arcsec to [0]
     241        About to apply <built-in function add> to [0, arcsec(0)]
     242        arcsec(0)
     243
    243244    """
    244245    vars = [(1.0, sage.calculus.calculus.var('v%d' % (n+1))) for n in range(nvars)]
    245246    if ncoeffs is None: