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

Commit

Permalink
use deprecated_function_alias() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Mar 25, 2014
1 parent daaf616 commit 4ae59be
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/sage/rings/power_series_ring_element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1792,15 +1792,8 @@ cdef class PowerSeries(AlgebraElement):
"""
return self.parent()([self[i] / arith.factorial(i) for i in range(self.degree()+1)])

def ogf(self):
from sage.misc.superseded import deprecation, deprecated_function_alias
deprecation(15705,'You can just call egf_to_ogf() instead')
return self.parent()([self[i] * arith.factorial(i) for i in range(self.degree()+1)])

def egf(self):
from sage.misc.superseded import deprecation, deprecated_function_alias
deprecation(15705,'You can just call ogf_to_egf() instead')
return self.parent()([self[i] / arith.factorial(i) for i in range(self.degree()+1)])
ogf = deprecated_function_alias(15705, egf_to_ogf)
egf = deprecated_function_alias(15705, ogf_to_egf)

def _pari_(self):
"""
Expand Down

0 comments on commit 4ae59be

Please sign in to comment.