.. _spkg_mpc:

mpc: Arithmetic of complex numbers with arbitrarily high precision and correct rounding
=======================================================================================

Description
-----------

From http://www.multiprecision.org/mpc: 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.

License
-------

LGPLv3+ for the code and GFDLv1.3+ (with no invariant sections) for the
documentation.


Upstream Contact
----------------

The MPC website is located at http://www.multiprecision.org/mpc .

The MPC team can be contacted via the MPC mailing list:

   mpc-discuss@lists.gforge.inria.fr

Dependencies
------------

-  MPIR
-  MPFR


Special Update/Build Instructions
---------------------------------

-  mpc_mul_faster.patch: Patch from Paul Zimmermann to speed up MPC
   multiplication (for small precisions) by reducing overhead in MPFR
   operations.

Type
----

standard


Version Information
-------------------

package-version.txt::

    1.1.0


Equivalent System Packages
--------------------------

conda:

.. CODE-BLOCK:: bash

    $ conda install mpc libmpc-devel

cygwin:

.. CODE-BLOCK:: bash

    $ apt-cyg install mpc libmpc-devel

Debian/Ubuntu:

.. CODE-BLOCK:: bash

    $ sudo apt-get install  mpc libmpc-devel

Fedora/Redhat/CentOS:

.. CODE-BLOCK:: bash

    $ sudo yum install  mpc libmpc-devel

freebsd:

.. CODE-BLOCK:: bash

    $ sudo pkg install mpc libmpc-devel

gentoo:

.. CODE-BLOCK:: bash

    $ sudo emerge mpc libmpc-devel

homebrew:

.. CODE-BLOCK:: bash

    $ brew install mpc libmpc-devel

nix:

.. CODE-BLOCK:: bash

    $ nix-env --install mpc libmpc-devel

opensuse:

.. CODE-BLOCK:: bash

    $ sudo zypper install mpc libmpc-devel

void:

.. CODE-BLOCK:: bash

    $ sudo xbps-install  mpc libmpc-devel

See https://repology.org/project/mpc/versions, https://repology.org/project/libmpc-devel/versions

If the system package is installed, ./configure will check whether it can be used.

