Peter Bruin on Tue, 01 Apr 2014 15:29:22 +0200

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: precision in roots()

Hello Loïc,

>> In result %5, the real part does reflect the precision parameter, but
>> the imaginary part seems to be limited by the GP precision.  Is this
>> intended?  (It also affects nfinit(), bnfinit() etc.)
>     No, it has the required precision but is *printed* accorded to the GP
>   precision. Try
> precision(imag(%5[1]))

Ah, I see, you're completely right.  I somehow forgot that the GP
default precision is also used to truncate the output precision.