summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUGS5
-rw-r--r--ChangeLog19
-rw-r--r--NEWS9
-rw-r--r--doc/mpc.texi149
-rw-r--r--tests/tcos.c2
5 files changed, 84 insertions, 100 deletions
diff --git a/BUGS b/BUGS
index e69de29..3a0266d 100644
--- a/BUGS
+++ b/BUGS
@@ -0,0 +1,5 @@
+- No checks are made for intermediate overflows, which may occur
+ in the middle of the algorithms although the final result
+ may be representable.
+- Correct handling of special values (Nan, infinities) is
+ postponed to a later version.
diff --git a/ChangeLog b/ChangeLog
index 7090444..e69de29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,19 +0,0 @@
-2008-04-11 Andreas Enge <enge@lix.polytechnique.fr>
- * new function mpc_log
- * bug fix in mpc_sqrt with directed rounding
- * added algorithms and error analysis document
-
-2008-03-27 Philippe THEVENY <philippe DOT theveny AT loria DOT fr>
- * new function mpc_cos
-
-2008-03-21 Philippe THEVENY <philippe DOT theveny AT loria DOT fr>
- * INSTALL: short description of the new compilation commands
- * mpc.texi: deeper explanations on the compilation options
- * configure.ac: add options selecting GMP/MPFR installation
- directory
-
-2008-03-14 Philippe THEVENY <philippe DOT theveny AT loria DOT fr>
- * NEWS: Added for autotools support
- * AUTHORS: Added for autotools support
- * Makefile.am: Added for autotools support
- * configure.ac: Added for autotools support
diff --git a/NEWS b/NEWS
index e69de29..1bf6104 100644
--- a/NEWS
+++ b/NEWS
@@ -0,0 +1,9 @@
+Changes from version 0.4.6 to 0.5:
+ - Support for autotools
+ - New functions:
+ - logarithm
+ - trigonometric functions: cos, tan
+ - hyperbolic functions: cosh, sinh, tanh
+ - Bug fixes:
+ - sqrt with directed rounding
+
diff --git a/doc/mpc.texi b/doc/mpc.texi
index b75ec9b..6d5ad03 100644
--- a/doc/mpc.texi
+++ b/doc/mpc.texi
@@ -1,4 +1,26 @@
\input texinfo
+@ignore
+Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
+Andreas Enge, Philippe Th\'eveny, Paul Zimmermann
+
+This file is part of the MPC Library.
+
+The MPC Library is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or (at your
+option) any later version.
+
+The MPC Library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+License for more details.
+
+You should have received a copy of the GNU Lesser General Public License
+along with the MPC Library; see the file COPYING.LIB. If not, write to
+the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+MA 02111-1307, USA.
+@end ignore
+
@setfilename mpc.info
@settitle MPC @value{VERSION}
@synindex tp fn
@@ -39,13 +61,6 @@ Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
are preserved on all copies.
-@ignore
-Permission is granted to process this file through TeX and print the
-results, provided the printed document carries copying permission
-notice identical to this one except for the removal of this paragraph
-(this paragraph not being relevant to the printed manual).
-
-@end ignore
Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the entire
resulting derived work is distributed under the terms of a permission
@@ -94,26 +109,26 @@ Complex Library, version @value{VERSION}
* MPC Basics:: What every MPC user should know.
* Complex Functions:: Functions for arithmetic on complex numbers.
-* Contributors::
-* References::
-* Concept Index::
-* Function Index::
+* Contributors::
+* References::
+* Concept Index::
+* Function Index::
@detailmenu
--- The Detailed Node Listing ---
Complex Functions
-* Initializing Complex Numbers::
-* Assigning Complex Numbers::
-* Simultaneous Init & Assign::
-* Complex Comparison::
-* Basic Arithmetic::
-* Power Functions and Logarithm::
-* Trigonometric Functions::
-* I/O of Complex Numbers::
-* Miscellaneous Complex Functions::
-* Internals::
+* Initializing Complex Numbers::
+* Assigning Complex Numbers::
+* Simultaneous Init & Assign::
+* Complex Comparison::
+* Basic Arithmetic::
+* Power Functions and Logarithm::
+* Trigonometric Functions::
+* I/O of Complex Numbers::
+* Miscellaneous Complex Functions::
+* Internals::
@end detailmenu
@end menu
@@ -131,34 +146,15 @@ Complex Functions
@cindex Copying conditions
@cindex Conditions for copying MPC
-This library is @dfn{free}; this means that everyone is free to use it and
-free to redistribute it on a free basis. The library is not in the public
-domain; it is copyrighted and there are restrictions on its distribution, but
-these restrictions are designed to permit everything that a good cooperating
-citizen would want to do. What is not allowed is to try to prevent others
-from further sharing any version of this library that they might get from
-you.@refill
-
-Specifically, we want to make sure that you have the right to give away copies
-of the library, that you receive source code or else can get it if you want
-it, that you can change this library or use pieces of it in new free programs,
-and that you know you can do these things.@refill
-
-To make sure that everyone has such rights, we have to forbid you to deprive
-anyone else of these rights. For example, if you distribute copies of the
-MPC library, you must give the recipients all the rights that you have. You
-must make sure that they, too, receive or can get the source code. And you
-must tell them their rights.@refill
-
-Also, for our own protection, we must make certain that everyone finds out
-that there is no warranty for the MPC library. If it is modified by
-someone else and passed on, we want their recipients to know that what they
-have is not what we distributed, so that any problems introduced by others
-will not reflect on our reputation.@refill
-
-The precise conditions of the license for the MPC library are found in the
-Lesser General Public License that accompanies the source code.
-See the file COPYING.LIB.@refill
+The MPC Library is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or (at your
+option) any later version, see the file COPYING.LIB.
+
+The MPC Library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+License for more details.
@node Introduction to MPC, Installing MPC, Copying, Top
@comment node-name, next, previous, up
@@ -166,13 +162,9 @@ See the file COPYING.LIB.@refill
MPC is a portable library written in C for arbitrary precision arithmetic
-on complex numbers. It is based on the GNU MP library.
-
-This version of MPC is released under the GNU Lesser General Public
-License.
-It is permitted to link MPC to non-free programs, as long as when
-distributing them the MPC source code and a means to re-link with a
-modified MPC is provided.
+on complex numbers providing correct rounding. Ultimately, it
+should implement a multiprecision equivalent of the C99 standard.
+It builds upon the GNU MP and the MPFR libraries.
@section How to use this Manual
@@ -188,7 +180,7 @@ probably a good idea to skim through it.
@cindex Installation
To build MPC, you first have to install GNU MP (version 4.2.2 or higher) and
-MPFR (version 2.2.1 or higher) on your computer. You need a C compiler,
+MPFR (version 2.3.0 or higher) on your computer. You need a C compiler,
preferably GCC, but any reasonable compiler should work. And you need a
standard Unix @samp{make} program, plus some other standard Unix utility
programs.
@@ -306,10 +298,7 @@ Delete all files copied by @samp{make install}.
@section Known Build Problems
-MPC suffers from all bugs from the GNU MP and MPFR libraries, plus many many
-more.
-
-Please report other problems to
+No build problems are known. Please report any problems you encounter to
@samp{mpc-discuss@@lists.gforge.inria.fr}.
@xref{Reporting Bugs}.
@@ -332,11 +321,10 @@ bug. Include instructions on how to run the test case.
You also have to explain what is wrong; if you get a crash, or if the results
printed are incorrect and in that case, in what way.
-Please include compiler version information
-in your bug report. This can be extracted using @samp{cc -V} on some
-machines, or,
-if you are using gcc, @samp{gcc -v}. Also, include the output from @samp{uname
--a}.
+Please include compiler version information in your bug report.
+This can be extracted using @samp{gcc -v},
+or @samp{cc -V} on some machines.
+Also, include the output from @samp{uname -a}.
If your bug report is good, we will do our best to help you to get a corrected
version of the library; if the bug report is poor, we will not do anything about
@@ -481,16 +469,16 @@ different word size.
@menu
-* Initializing Complex Numbers::
-* Assigning Complex Numbers::
-* Simultaneous Init & Assign::
-* Complex Comparison::
-* Basic Arithmetic::
-* Power Functions and Logarithm::
-* Trigonometric Functions::
-* I/O of Complex Numbers::
-* Miscellaneous Complex Functions::
-* Internals::
+* Initializing Complex Numbers::
+* Assigning Complex Numbers::
+* Simultaneous Init & Assign::
+* Complex Comparison::
+* Basic Arithmetic::
+* Power Functions and Logarithm::
+* Trigonometric Functions::
+* I/O of Complex Numbers::
+* Miscellaneous Complex Functions::
+* Internals::
@end menu
@node Initializing Complex Numbers, Assigning Complex Numbers, Complex Functions, Complex Functions
@@ -934,8 +922,9 @@ of the real and imaginary parts.
@comment node-name, next, previous, up
@unnumbered Contributors
-The main developers of the MPC library are Andreas Enge and
-Paul Zimmermann. Patrick Pelissier has cleaned up the code.
+The main developers of the MPC library are Andreas Enge,
+Philippe Th@'eveny and Paul Zimmermann.
+Patrick Pelissier has helped cleaning up the code.
Marc Helbling contributed the @code{mpc_ui_sub} and
@code{mpc_ui_ui_sub} functions.
@@ -948,12 +937,12 @@ Marc Helbling contributed the @code{mpc_ui_sub} and
@item
Torbj@"orn Granlund et al.
@code{gmp} -- GNU multiprecision library.
-Version 4.2.1, @url{http://gmplib.org/}.
+Version 4.2.2, @url{http://gmplib.org/}.
@item
Guillaume Hanrot, Vincent Lef@`evre, Patrick P@'elissier, Paul Zimmermann et al.
@code{mpfr} -- A library for multiple-precision floating-point computations with exact rounding.
-Version 2.2.1, @url{http://www.mpfr.org}.
+Version 2.3.0, @url{http://www.mpfr.org}.
@item
IEEE standard for binary floating-point arithmetic, Technical Report
diff --git a/tests/tcos.c b/tests/tcos.c
index b2ba9f8..b42474c 100644
--- a/tests/tcos.c
+++ b/tests/tcos.c
@@ -1,6 +1,6 @@
/* test file for mpc_cos.
-Copyright (C) 2007 INRIA.
+Copyright (C) 2008 Philippe Th\'eveny
This file is part of the MPC Library.