That's great, Alex, I also spent a lot of yesterday looking at the
same code. I look forward to seeing your patch and will test it on
both 32 and 64 bit machines.
John
2008/9/5 William Stein <[EMAIL PROTECTED]>:
>
> On Fri, Sep 5, 2008 at 2:48 PM, John Cremona <[EMAIL PROTECTED]> wrote:
>>
>> 2
Hi John,
I am about to put up a patch at #4064 (I'm adding a couple more doctests). It
is not perfect (it does not have proper doctests for 64 bit machines since I
don't have access to one), but I hope we can make it work soon.
Basically, I spent two days reading the libs/pari code and despairi
On Fri, Sep 5, 2008 at 2:48 PM, John Cremona <[EMAIL PROTECTED]> wrote:
>
> 2008/9/5 Carl Witty <[EMAIL PROTECTED]>:
>>
>> 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
2008/9/5 Carl Witty <[EMAIL PROTECTED]>:
>
> 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()
>
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'
The more I look into this the more of a total mess it seems:
sage: pari(1.2345).precision() , pari('1.2345').precision()
(3, 4)
sage: pari(1.2345).python() , pari('1.2345').python()
(1.23443, 1.23450)
sage: pari(1.2345).python().prec() , pari('1.2345').
On Sep 5, 7:56 am, "John Cremona" <[EMAIL PROTECTED]> wrote:
Hi John,
> I had some useful confirmation from Karim.
Nice.
> The pari library always and only measures precision in
> number-of-codewords, and the prec parameter in pari library functions
> always denotes this.
>
> For the gp inte
I had some useful confirmation from Karim.
The pari library always and only measures precision in
number-of-codewords, and the prec parameter in pari library functions
always denotes this.
For the gp interface (to pari) decimal precisions are used, as they
are supposed to make more sense to huma