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

Commit

Permalink
deprecate cotan
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveWitteMorris committed Mar 26, 2020
1 parent 9b59968 commit 6259014
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/sage/rings/complex_mpc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ from .real_mpfr import mpfr_prec_min, mpfr_prec_max
from sage.structure.richcmp cimport rich_to_bool, richcmp
from sage.categories.fields import Fields

from sage.misc.superseded import deprecated_function_alias

cimport gmpy2
gmpy2.import_gmpy2()

Expand Down Expand Up @@ -1985,8 +1987,6 @@ cdef class MPComplexNumber(sage.structure.element.FieldElement):
sage: MPC = MPComplexField(53)
sage: (1+MPC(I)).cot()
0.217621561854403 - 0.868014142895925*I
sage: (1+MPC(I)).cotan()
0.217621561854403 - 0.868014142895925*I
sage: i = MPComplexField(200).0
sage: (1+i).cot()
0.21762156185440268136513424360523807352075436916785404091068 - 0.86801414289592494863584920891627388827343874994609327121115*I
Expand All @@ -1996,7 +1996,7 @@ cdef class MPComplexNumber(sage.structure.element.FieldElement):
"""
return ~(self.tan())

cotan = cot # provide this alias for backwards compatibility (2020-3-25)
cotan = deprecated_function_alias(29412, cot)

################################
# Other functions
Expand Down
6 changes: 3 additions & 3 deletions src/sage/rings/complex_number.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ import sage.rings.infinity as infinity
from sage.libs.mpmath.utils cimport mpfr_to_mpfval
from sage.rings.integer_ring import ZZ

from sage.misc.superseded import deprecated_function_alias

cimport gmpy2
gmpy2.import_gmpy2()

Expand Down Expand Up @@ -1461,8 +1463,6 @@ cdef class ComplexNumber(sage.structure.element.FieldElement):
sage: (1+CC(I)).cot()
0.217621561854403 - 0.868014142895925*I
sage: (1+CC(I)).cotan()
0.217621561854403 - 0.868014142895925*I
sage: i = ComplexField(200).0
sage: (1+i).cot()
0.21762156185440268136513424360523807352075436916785404091068 - 0.86801414289592494863584920891627388827343874994609327121115*I
Expand All @@ -1479,7 +1479,7 @@ cdef class ComplexNumber(sage.structure.element.FieldElement):
"""
return ~(self.tan())

cotan = cot # provide this alias for backwards compatibility (2020-3-25)
cotan = deprecated_function_alias(29412, cot)

def cos(self):
"""
Expand Down

0 comments on commit 6259014

Please sign in to comment.