You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trac #32964: very slow doctest in functions.orthogonal_polys
{{{
$ sage -t --warn-long 10.0 --random-
seed=80495217684824677825915603387163671014
src/sage/functions/orthogonal_polys.py
**********************************************************************
File "src/sage/functions/orthogonal_polys.py", line 2084, in
sage.functions.orthogonal_polys.Func_ultraspherical
Warning, slow doctest:
for N in range(100):
n = ZZ.random_element(5, 5001)
a = QQ.random_element().abs() + 5
assert ((n+1)*ultraspherical(n+1,a,x) -
2*x*(n+a)*ultraspherical(n,a,x) +
(n+2*a-1)*ultraspherical(n-1,a,x)).expand().is_zero()
Test ran for 261.17 s
[400 tests, 273.87 s]
}}}
Since the test is randomized, we don't need to repeat it a hundred
times. Coverage is provided more by the number of testers. And we
shouldn't use `assert()` in EXAMPLES...
URL: https://trac.sagemath.org/32964
Reported by: mjo
Ticket author(s): Michael Orlitzky
Reviewer(s): Frédéric Chapoton
0 commit comments