Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
simplify doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Oct 13, 2021
1 parent e6dd027 commit 22c2b66
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sage/functions/orthogonal_polys.py
Original file line number Diff line number Diff line change
Expand Up @@ -2083,9 +2083,7 @@ class Func_ultraspherical(GinacFunction):
32*t^3 - 12*t
sage: _ = var('x')
sage: for N in range(100):
....: n = ZZ.random_element().abs() + 5
....: if n > 5000: # avoid timeouts
....: continue
....: 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()
sage: ultraspherical(5,9/10,3.1416)
Expand Down

0 comments on commit 22c2b66

Please sign in to comment.