version 1.1.1.1, 2000/09/09 14:12:19 |
version 1.1.1.2, 2003/08/25 16:06:05 |
|
|
|
This file is part of the MPFR Library. |
|
|
THE MPFR LIBRARY |
The MPFR Library is free software; you can redistribute it and/or modify it |
|
under the terms of the GNU Lesser General Public License (either version 2.1 |
|
of the License, or, at your option, any later version) and the GNU General |
|
Public License as published by the Free Software Foundation (most of MPFR is |
|
under the former, some under the latter). |
|
|
***** EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL ***** |
The MPFR Library is distributed in the hope that it will be useful, but |
***** EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL ***** |
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
***** EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL ***** |
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
|
License for more details. |
|
|
This is a new function class, 'mpfr', for accurate floating-point arithmetic |
You should have received a copy of the GNU Lesser General Public License |
with rounding control. Unlike the 'mpf' function class, 'mpfr' is a smooth |
along with the MPFR Library; see the file COPYING.LIB. If not, write to |
extension to the IEEE P754 arithmetic. In fact, setting the precision to 53, |
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
'mpfr' functions should work exactly like IEEE doubles. |
02111-1307, USA. |
|
|
This code is *experimental* and it is not fully integrated into GMP. It is |
|
also not as well tested as the other parts of GMP. The original 'mpfr' library |
|
integrated into GMP was version 0.4. |
|
|
|
This code might at some point replace the 'mpf' library. |
The MPFR distribution contains the following files: |
|
|
|
AUTHORS - the authors of the library |
|
BUGS - bugs in MPFR - please read this file! |
MORE INFORMATION |
COPYING - the GNU General Public License, version 2 |
|
COPYING.LIB - the Gnu Lesser General Public License, version 2.1 |
This code was contributed by the French FIABLE project. Please see the 'mpfr' |
ChangeLog - the log of changes |
project page for more info, http://www.loria.fr/projets/mpfr/ |
INSTALL - how to install MPFR (see also mpfr.texi) |
|
Makefile* - files for building the library |
|
NEWS - new features with respect to previous versions |
|
README - this file |
INSTALLATION |
TODO - what remains to do (any help is welcome!) |
|
VERSION - version of MPFR (next release version if taken from CVS) |
To install this package to the libgmp library you add the "--enable-mpfr" to |
ac*.m4 - automatic configuration files |
configure. This has the unfortune side effect that all programs using GMP |
*.c - source files |
will also depend on 'libm'. |
configure* - configuration files |
|
install* - installation files |
Two test cases were disabled, 'tcmp' 'tset_d'. |
missing - auxiliary installation file |
|
mkinst* - auxiliary installation file |
|
mpf2mpfr.h - header file for compatibility with MPF |
|
mpfr.h - external header file for MPFR |
REPORTING BUGS |
mpfr-impl.h - internal header file for MPFR |
|
mpfr-math.h - another internal header file for MPFR |
Report bugs to bug-gmp@gnu.org and mpfr@loria.fr. What information is |
mpfr-test.h - header file for test files |
needed in a good bug report is described in the manual. The same address |
mpfr.info - info file for MPFR |
can be used for suggesting modifications and enhancements. |
mpfr.texi - texinfo documentation for MPFR |
|
tests/ - test directory |
|
texinfo.tex - TeX macros to handle mpfr.texi |
|
|
NOTES FROM THE ORIGINAL INSTALL DOCUMENT |
|
|
|
We tested the installation with GMP 2.0.2 on the following architectures: |
|
|
|
Pentium II and III/Linux 2.2.10 |
|
Alpha 21264/OSF1 V4.0 |
|
SGI R10000/IRIX 6.5 (both using 32- and 64-bit limbs) |
|
Sun UltraSparc/Solaris 2.6 |
|
HP 9000/HP-UX A.09.05 |
|
Pentium/Windows with Cygnus compiler |
|
|
|
Known problems. |
|
=============== |
|
|
|
1) On some architectures (for example Alpha/OSF), the default 'make' command |
|
crashes in step 3. GNU make is preferred. |
|
|
|
2) Under HP-UX and Pentium/Linux, don't use the -pedantic option, otherwise |
|
gcc complains with the longlong.h file from GMP. |
|
|
|
3) On the Alpha, the test file for the square root (tsqrt) may produce |
|
errors as follows: |
|
|
|
libm.a differs from mpfr_sqrt for a=9.89438396044940260000e-134, rnd_mode=2 |
|
libm.a gives 3.14553397063986620000e-67, mpfr_sqrt gives 3.14553397063986680000e-67 (1 ulp) |
|
libm.a differs from mpfr_sqrt for a=7.86528588050363750000e+31, rnd_mode=1 |
|
libm.a gives 8.86864469944739500000e+15, mpfr_sqrt gives 8.86864469944739400000e+15 (-1 ulp) |
|
|
|
Also, Linux on Alpha is known to have problems with IEEE conformance. See |
|
http://www.linux.org.uk/VERSION/relnotes.2211.html. |
|
|
|
In most cases, as above, the error comes from the libm.a. On Alpha/Linux, |
|
which is known to have a bad libm.a, you may even find errors in the |
|
addition or multiplication. |
|
|
|
|
|