mpc: Arithmetic of complex numbers with arbitrarily high precision and correct rounding - Packages and Features

Skip to content
Back to top
View this page
Edit this page

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

## Description

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

The MPC team can be contacted via the MPC mailing list: mpc-discuss@inria.fr

## 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

## Dependencies

- $(MP_LIBRARY)

- mpfr: Multiple-precision floating-point computations with correct rounding

## Version Information

package-version.txt:

    1.3.1

## Equivalent System Packages

Alpine

    $ apk add mpc1 mpc1-dev

conda-forge

    $ conda install mpc

Debian/Ubuntu

    $ sudo apt-get install libmpc-dev

Fedora/Redhat/CentOS

    $ sudo dnf install libmpc libmpc-devel

FreeBSD

    $ sudo pkg install math/mpc

Gentoo Linux

    $ sudo emerge dev-libs/mpc

Homebrew

    $ brew install libmpc

Nixpkgs

    $ nix-env --install libmpc

openSUSE

    $ sudo zypper install mpc-devel

pyodide

install the following packages: libmpc

Void Linux

    $ sudo xbps-install libmpc-devel

See https://repology.org/project/gnumpc/versions, https://repology.org/project/libmpc/versions

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