Skip to content

Commit

Permalink
Trac #26694: remove a deprecated special function
Browse files Browse the repository at this point in the history
after #21819

URL: https://trac.sagemath.org/26694
Reported by: chapoton
Ticket author(s): Frédéric Chapoton
Reviewer(s): Travis Scrimshaw
  • Loading branch information
Release Manager authored and vbraun committed Nov 14, 2018
2 parents d35c467 + b75c02c commit 144ee5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/sage/functions/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

from .special import (spherical_harmonic, elliptic_e,
elliptic_f, elliptic_ec, elliptic_eu,
elliptic_kc, elliptic_pi, elliptic_j, error_fcn)
elliptic_kc, elliptic_pi, elliptic_j)

from .jacobi import (jacobi, inverse_jacobi, jacobi_nd, jacobi_ns, jacobi_nc,
jacobi_dn, jacobi_ds, jacobi_dc, jacobi_sn, jacobi_sd,
Expand Down
27 changes: 4 additions & 23 deletions src/sage/functions/special.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
by hardware floats precision.
"""

#*****************************************************************************
# ****************************************************************************
# Copyright (C) 2006 William Stein <wstein@gmail.com>
# 2006 David Joyner <wdj@usna.edu>
#
Expand All @@ -155,8 +155,8 @@
#
# The full text of the GPL is available at:
#
# http://www.gnu.org/licenses/
#*****************************************************************************
# https://www.gnu.org/licenses/
# ****************************************************************************

from sage.rings.integer import Integer
from sage.rings.real_mpfr import RealField
Expand All @@ -174,6 +174,7 @@
from sage.functions.all import sqrt, sin, cot, exp
from sage.symbolic.all import I


class SphericalHarmonic(BuiltinFunction):
r"""
Returns the spherical harmonic function `Y_n^m(\theta, \varphi)`.
Expand Down Expand Up @@ -1014,23 +1015,3 @@ def _print_latex_(self, n, z, m):
return r"\Pi(%s,%s,%s)" % (latex(n), latex(z), latex(m))

elliptic_pi = EllipticPi()


def error_fcn(x):
"""
Deprecated in :trac:`21819`. Please use ``erfc()``.
EXAMPLES::
sage: error_fcn(x)
doctest:warning
...
DeprecationWarning: error_fcn() is deprecated. Please use erfc()
See http://trac.sagemath.org/21819 for details.
erfc(x)
"""
from .error import erfc
from sage.misc.superseded import deprecation
deprecation(21819, "error_fcn() is deprecated. Please use erfc()")
return erfc(x)

0 comments on commit 144ee5b

Please sign in to comment.