diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-09-18 19:50:36 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-09-18 19:50:36 +0000 |
commit | a2f5b621b93d55dbebb2496e8a9faa30951975b7 (patch) | |
tree | ed4cc386d8ac9746679d2c32fdd52d5e1b808490 /TODO | |
parent | b8c92328cd04ae9d568edb5abecccf3297f8ecf8 (diff) | |
download | mpfr-a2f5b621b93d55dbebb2496e8a9faa30951975b7.tar.gz |
[TODO] added efficiency item
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7156 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'TODO')
-rw-r--r-- | TODO | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -232,6 +232,12 @@ Table of contents: 5. Efficiency ############################################################################## +- use mpn_div_q to speed up mpfr_div. However mpn_div_q, which is new in + GMP 5, is not documented in the GMP manual, thus we are not sure it + guarantees to return the same quotient as mpn_tdiv_qr. + Also mpfr_div uses the remainder computed by mpn_divrem. A workaround would + be to first try with mpn_div_q, and if we cannot (easily) compute the + rounding, then use the current code with mpn_divrem. - compute exp by using the series for cosh or sinh, which has half the terms (see Exercise 4.11 from Modern Computer Arithmetic, version 0.3) The same method can be used for log, using the series for atanh, i.e., |