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

Commit

Permalink
Fixes for "sage not defined".
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Pierre Flori committed Dec 24, 2013
1 parent 89ef12d commit 5f00813
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sage/rings/padics/padic_generic_element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,8 @@ cdef class pAdicGenericElement(LocalGenericElement):
x^4 - x^3 + x^2 - x + 1
"""
# TODO: figure out if this works for extension rings. If not, move this to padic_base_generic_element.
return sage.rings.arith.algdep(self, n)
from sage.rings.arith import algdep
return algdep(self, n)

def algebraic_dependency(self, n):
"""
Expand Down Expand Up @@ -1060,7 +1061,8 @@ cdef class pAdicGenericElement(LocalGenericElement):
p = self.parent().prime()
alpha = self.unit_part().lift()
m = Integer(p**self.precision_relative())
r = sage.rings.arith.rational_reconstruction(alpha, m)
from sage.rings.arith import rational_reconstruction
r = rational_reconstruction(alpha, m)
return (Rational(p)**self.valuation())*r

def _shifted_log(self, aprec, mina=0):
Expand Down

0 comments on commit 5f00813

Please sign in to comment.