On Sep 5, 9:40 am, "John Cremona" <[EMAIL PROTECTED]> wrote:
> The more I look into this the more of a total mess it seems:
...
> not to mention this:
> sage: pari((1.2345).str()).precision()
> 210
> sage: pari((1.2345).str()).python().parent()
> Real Field with 6656 bits of precision
>
> -- that's right, you turn an honest 53-bit real to a string, it turns
> into a pari real with precision 210 (words) which gets turned back
> into 6656 bits (on 32 bits;  for some reason on 64 bit machine it only
> comes back with 128 bits precision).

On my Sage 3.1.1 build (Debian testing, 32-bit x86), I get:
sage: pari((1.2345).str()).precision()
5
sage: pari((1.2345).str()).python().parent()
Real Field with 96 bits of precision

which is not nearly so wrong.

Are your results repeatable if you restart Sage?  Maybe something is
setting the Pari precision and forgetting to reset it?

Carl

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to