# HG changeset patch
# User Benjamin Jones <benjaminfjones@gmail.com>
# Date 1329078348 21600
# Node ID 24e0858b2b87aa876f2b5f3ed56799d47ba31417
# Parent c9968d03e87de7b5cacfacf84481ded89439a387
fixrandom tests after rebasing against #4498 and #12507
diff --git a/sage/symbolic/random_tests.py b/sage/symbolic/random_tests.py
a
|
b
|
|
16 | 16 | sage: [f for (one,f,arity) in _mk_full_functions()] # random |
17 | 17 | [Ei, abs, arccos, arccosh, arccot, arccoth, arccsc, arccsch, |
18 | 18 | arcsec, arcsech, arcsin, arcsinh, arctan, arctan2, arctanh, |
19 | | arg, binomial, ceil, conjugate, cos, cosh, cot, coth, csc, |
20 | | csch, dickman_rho, dilog, dirac_delta, elliptic_e, |
| 19 | arg, beta, binomial, ceil, conjugate, cos, cosh, cot, coth, |
| 20 | csc, csch, dickman_rho, dilog, dirac_delta, elliptic_e, |
21 | 21 | elliptic_ec, elliptic_eu, elliptic_f, elliptic_kc, |
22 | 22 | elliptic_pi, erf, exp, factorial, floor, heaviside, imag_part, |
23 | 23 | integrate, kronecker_delta, log, polylog, real_part, sec, |
… |
… |
|
234 | 234 | sage: from sage.symbolic.random_tests import * |
235 | 235 | sage: set_random_seed(2) |
236 | 236 | sage: random_expr(50, nvars=3, coeff_generator=CDF.random_element) # random |
237 | | (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) |
| 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 - |
| 240 | 0.0936820840629*I)/v1) - (0.553423153995 - 0.5481180572*I)*v3 |
| 241 | + 0.149683576515 - 0.155746451854*I)*v1 + arccsch(pi + |
| 242 | e)*elliptic_eu(khinchin*v2, 1.4656989704 + 0.863754357069*I) |
238 | 243 | sage: random_expr(5, verbose=True) # random |
239 | | About to apply dirac_delta to [1] |
| 244 | About to apply dilog to [1] |
240 | 245 | About to apply arcsec to [0] |
241 | | About to apply <built-in function add> to [0, arcsec(0)] |
242 | | arcsec(0) |
243 | | |
| 246 | About to apply <built-in function add> to [1/6*pi^2, arcsec(0)] |
| 247 | 1/6*pi^2 + arcsec(0) |
244 | 248 | """ |
245 | 249 | vars = [(1.0, sage.calculus.calculus.var('v%d' % (n+1))) for n in range(nvars)] |
246 | 250 | if ncoeffs is None: |