On Wed, May 25, 2011 at 5:53 PM, Mel <chemmyg...@gmail.com> wrote:
> I'm having an issue with converting between p-adic and rational
> numbers.
>
> 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."

When asking such questions, it is helpful to give code that can
trivially pasted in that illustrates your problem.

>
> More generally, it seems that if the precision of the p-adic number is
> O(p^n), and the p-adic number includes powers of p greater than n/2,
> the number cannot be converted to a rational.
>
> Any info is appreciated. Thanks!
>
> --
> 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
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
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

Reply via email to