Does anybody actually use Sage's RQDF (real quad double field) code in Sage?
I want to scrap it.
Right now the *only* code in all Sage that uses RQDF is Bober's
number_of_partions in
some case, which could easily be modified to not use it.
On Solaris x86 RQDF has massive precision loss in some cases (e.g.,
only 170 bits right
out of 212).
RQDF is on flimsy theoretical footings, to put it mildly. It also
fails make check on Solaris
with precision errors.
It's sole reason for existence is (1) it is a simple data structure
and (2) it is supposed to
be faster than MPFR. In fact, it is only very slightly faster than
MPFR, and (1) basically
doesn't matter for Sage.
Basically MPFR just kicks RQDF's butt in every way from our
perspective, so why have
RQDF in Sage?
-- William
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org
John
2008/7/25 William Stein <wst...@gmail.com>:
>
> Hi,
>
> Does anybody actually use Sage's RQDF (real quad double field) code
> in Sage?
I use every other RR and CC like type, but not RQDF.
> I want to scrap it.
+1.
Nick
I have no problem in replacing RQDF by MPFR everywhere in Sage. It can only
help to better test MPFR. On the other hand maybe some Sage users did develop
some code using RQDF. This raises a general question: what is the policy about
upward compatibility?
Paul
However, if it's broken, then it's broken. Besides, I suspect that
having number_of_partitions() take twice as long to run doesn't really
matters for anything except bragging purposes.
I do wonder what makes it so broken on Solaris x86, though. It might
just be that some flags need to be passed to the compiler regarding the
handling of 53/64 bit doubles on x86 machines or to tell the compiler
that SSE should be used for all floating point arithmetic.
-Bober