I know very little about SAGE, but surely the point is that this is not well-defined: what rational were you expecting? You can only guarantee to get a number with (num,den) <sqrt(p^k/2), and there isn't one, as 1 itself doesn't work. Did you wnat to convert to integer? On May 26, 1:53 am, Mel <chemmyg...@gmail.com> wrote: > Specifically, there are certain p-adic numbers that I cannot convert > to rationals. As an example, if 1+7^3+O(7^5) is a 7-adic integer with > capped relative precision 5, I cannot convert it to a rational. I get > the error "ValueError: Rational reconstruction of 344 (mod 16807) does > not exist."
-- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org