Bill Allombert on Mon, 29 Feb 2016 23:46:43 +0100


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

Re: Why is precision(sqrt(0)) < precision(sqrt(1)) ??


On Mon, Feb 29, 2016 at 06:34:30PM +0000, Jacques Gélinas wrote:
> Now, I can understand lowering the precision by half for sqrt(0.), 
> but not for sqrt(0) and then why is is not also done for sqrt(1)  ?

Due to the internal representation of floating point number in PARI,
real 0 do not have a precision in the same sense than non-0 reals.
Instead precision() of a zero is linked to its exponent.

Cheers,
Bill.