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

Commit

Permalink
Avoid confusion in docstring of residue()
Browse files Browse the repository at this point in the history
by using a different base ring
  • Loading branch information
saraedum committed Nov 17, 2016
1 parent 7289e97 commit fadea8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/rings/padics/padic_capped_absolute_element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ cdef class pAdicCappedAbsoluteElement(CAElement):
EXAMPLES::
sage: R = Zp(7,4,'capped-abs')
sage: R = Zp(7,10,'capped-abs')
sage: a = R(8)
sage: a.residue(1)
1
Expand All @@ -190,9 +190,9 @@ cdef class pAdicCappedAbsoluteElement(CAElement):
sage: b.parent()
Ring of integers modulo 49
sage: c = a % 7^2; c
1 + 7 + O(7^2)
1 + 7 + O(7^8)
sage: c.parent()
7-adic Ring with capped absolute precision 4
7-adic Ring with capped absolute precision 10
TESTS::
Expand All @@ -202,7 +202,7 @@ cdef class pAdicCappedAbsoluteElement(CAElement):
Traceback (most recent call last):
...
ValueError: cannot reduce modulo a negative power of p.
sage: a.residue(5)
sage: a.residue(11)
Traceback (most recent call last):
...
PrecisionError: not enough precision known in order to compute residue.
Expand Down

0 comments on commit fadea8d

Please sign in to comment.