math.frexp

Paul Rubin no.email at nospam.invalid
Sat Jul 16 15:49:21 EDT 2016


Steven D'Aprano <steve at pearwood.info> writes:
>>> protection against overflow of intermediate values.
>> Might be simplest to just add the logarithms.
> Simplest, but least accurate, even with Kahan summation or equivalent.

Well the idea was to avoid overflow first, then hold on to whatever
precision you have after that.  Is there a way to use extended
(e.g. 80-bit) floats in numpy/scipy/etc.?



More information about the Python-list mailing list