Skip to content

Commit 283edfa

Browse files
author
Release Manager
committed
gh-40777: remove one deprecated alias in orthogonal polys deprecated in File: src/sage/functions/orthogonal_polys.py ; PR: #25034 ; Closed Date: 2021-04-25 ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. URL: #40777 Reported by: Frédéric Chapoton Reviewer(s): David Coudert
2 parents 71ce9aa + 3500a7a commit 283edfa

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

src/sage/functions/orthogonal_polys.py

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ def __init__(self, name, nargs=2, latex_name=None, conversions=None):
455455
except KeyError:
456456
pass
457457
super().__init__(name=name, nargs=nargs,
458-
latex_name=latex_name,
459-
conversions=conversions)
458+
latex_name=latex_name,
459+
conversions=conversions)
460460

461461
def eval_formula(self, *args):
462462
"""
@@ -1376,9 +1376,9 @@ def __init__(self):
13761376
-29113619535/131072*log(-(x + 1)/(x - 1))
13771377
"""
13781378
BuiltinFunction.__init__(self, "legendre_Q", nargs=2, latex_name=r"Q",
1379-
conversions={'maxima': 'legendre_q',
1380-
'mathematica': 'LegendreQ',
1381-
'maple': 'LegendreQ'})
1379+
conversions={'maxima': 'legendre_q',
1380+
'mathematica': 'LegendreQ',
1381+
'maple': 'LegendreQ'})
13821382

13831383
def _eval_(self, n, x, *args, **kwds):
13841384
r"""
@@ -1883,9 +1883,6 @@ def eval_gen_poly(self, n, m, arg, **kwds):
18831883
ex2 = sum(b * arg**a for a, b in enumerate(p))
18841884
return (-1)**(m+n)*ex1*ex2
18851885

1886-
from sage.misc.superseded import deprecated_function_alias
1887-
eval_poly = deprecated_function_alias(25034, eval_gen_poly)
1888-
18891886
def _derivative_(self, n, m, x, *args, **kwds):
18901887
"""
18911888
Return the derivative of ``gen_legendre_P(n,m,x)``.
@@ -2121,11 +2118,12 @@ def __init__(self):
21212118
32 x - 160 x + 120 x
21222119
"""
21232120
GinacFunction.__init__(self, "hermite", nargs=2, latex_name=r"H",
2124-
conversions={'maxima': 'hermite',
2125-
'mathematica': 'HermiteH',
2126-
'maple': 'HermiteH',
2127-
'fricas': 'hermiteH',
2128-
'sympy': 'hermite'}, preserved_arg=2)
2121+
conversions={'maxima': 'hermite',
2122+
'mathematica': 'HermiteH',
2123+
'maple': 'HermiteH',
2124+
'fricas': 'hermiteH',
2125+
'sympy': 'hermite'},
2126+
preserved_arg=2)
21292127

21302128

21312129
hermite = Func_hermite()
@@ -2179,11 +2177,11 @@ def __init__(self):
21792177
2
21802178
"""
21812179
OrthogonalFunction.__init__(self, "jacobi_P", nargs=4, latex_name=r"P",
2182-
conversions={'maxima': 'jacobi_p',
2183-
'mathematica': 'JacobiP',
2184-
'maple': 'JacobiP',
2185-
'fricas': 'jacobiP',
2186-
'sympy': 'jacobi'})
2180+
conversions={'maxima': 'jacobi_p',
2181+
'mathematica': 'JacobiP',
2182+
'maple': 'JacobiP',
2183+
'fricas': 'jacobiP',
2184+
'sympy': 'jacobi'})
21872185

21882186
def _eval_(self, n, a, b, x):
21892187
"""
@@ -2420,11 +2418,11 @@ def __init__(self):
24202418
laguerre
24212419
"""
24222420
OrthogonalFunction.__init__(self, "laguerre", nargs=2, latex_name=r"L",
2423-
conversions={'maxima': 'laguerre',
2424-
'mathematica': 'LaguerreL',
2425-
# 'fricas': 'laguerreL', 3 arguments ?
2426-
'maple': 'LaguerreL',
2427-
'sympy': 'laguerre'})
2421+
conversions={'maxima': 'laguerre',
2422+
'mathematica': 'LaguerreL',
2423+
# 'fricas': 'laguerreL', 3 arguments ?
2424+
'maple': 'LaguerreL',
2425+
'sympy': 'laguerre'})
24282426

24292427
def _eval_(self, n, x, *args, **kwds):
24302428
r"""

0 commit comments

Comments
 (0)