Skip to content
This repository was archived by the owner on Sep 26, 2021. It is now read-only.

Commit 85726b1

Browse files
committed
gegenbauer diff
1 parent a16f06f commit 85726b1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/sage/functions/orthogonal_polys.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ class Func_ultraspherical(GinacFunction):
14741474
sage: ultraspherical(5,9/10,RealField(100)(pi))
14751475
6949.4695419382702451843080687
14761476
1477-
sage: _ = var('a')
1477+
sage: _ = var('a n')
14781478
sage: gegenbauer(2,a,x)
14791479
2*(a + 1)*a*x^2 - a
14801480
sage: gegenbauer(3,a,x)
@@ -1487,6 +1487,15 @@ class Func_ultraspherical(GinacFunction):
14871487
sage: (ex.subs(a==55/98) - gegenbauer(100,55/98,x)).is_trivial_zero()
14881488
True
14891489
1490+
sage: derivative(gegenbauer(n,a,x),x)
1491+
2*a*gegenbauer(n - 1, a + 1, x)
1492+
sage: derivative(gegenbauer(3,a,x),x)
1493+
4*(a + 2)*(a + 1)*a*x^2 - 2*(a + 1)*a
1494+
sage: derivative(gegenbauer(n,a,x),a)
1495+
Traceback (most recent call last):
1496+
...
1497+
RuntimeError: derivative w.r.t. to the second index is not supported yet
1498+
14901499
TESTS:
14911500
14921501
Check that :trac:`17192` is fixed::

0 commit comments

Comments
 (0)