Introduction
GNU MPC is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. It extends the principles of the IEEE-754 standard for fixed precision real floating point numbers to complex numbers, providing well-defined semantics for every operation. At the same time, speed of operation at high precision is a major design goal.
The library is built upon and follows the same principles as GNU MPFR. It is written by Andreas Enge, Mickaël Gastineau, Philippe Théveny and Paul Zimmermann and is distributed under the GNU Lesser General Public License, either version 3 of the licence, or (at your option) any later version (LGPLv3+). The GNU MPC library has been registered in France by the Agence pour la Protection des Programmes on 2003-02-05 under the number IDDN FR 001 060029 000 R P 2003 000 10000.
News
Version 1.3.1, "Ipomoea batatas", released in December 2022, comes with the following new features:
-
Bug fix: It is again possible to include
mpc.h
without includingstdio.h
.
Version 1.3.0, "Ipomoea batatas", released in December 2022, comes with the following new features:
-
New function:
mpc_agm
-
New rounding modes "away from zero", indicated by the letter "A" and
corresponding to
MPFR_RNDA
on the designated real or imaginary part. - New experimental ball arithmetic.
-
New experimental function:
mpc_eta_fund
-
Bug fixes:
mpc_asin
for asin(z) with small |Re(z)| and tiny |Im(z)|mpc_pow_fr
: sign of zero part of result when the base has up to sign the same real and imaginary part, and the exponent is an even positive integermpc_fma
: the returnedint
value was incorrect in some cases (indicating whether the rounded real/imaginary parts were smaller/equal/greater than the exact values), but the computed complex value was correct.
-
Remove the unmaintained
Makefile.vc
; build files for Visual Studio are maintained independently by Brian Gladman.