Ticket #635 (closed defect: fixed)
[with patch] p-adic height gives incorrect precision
| Reported by: | dmharvey | Owned by: | dmharvey |
|---|---|---|---|
| Priority: | major | Milestone: | sage-2.8.7 |
| Component: | algebraic geometry | Keywords: | |
| Cc: | Author(s): | ||
| Report Upstream: | Reviewer(s): | ||
| Merged in: | Work issues: |
Description
If I ask for precision 10, I get precision 9:
sage: E = EllipticCurve("37a")
sage: P = E.gens()[0]
sage: h = E.padic_height(5, 10)
sage: h(P)
4*5 + 3*5^2 + 3*5^3 + 4*5^4 + 4*5^5 + 5^6 + 4*5^8 + O(5^9)
It didn't use to behave this way; it probably happened accidentally as a consequence of some changes chris wuthrich made, and it appears that the doctests were modified to make this behaviour the "correct" one. This should be fixed, because in the large prime case it ends up wasting a lot of time computing extra digits in intermediate steps.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

