pari: Computer algebra system for fast computations in number theory - Packages and Features

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

# pari: Computer algebra system for fast computations in number theory

## Description

PARI/GP is a widely used computer algebra system designed for fast computations in number theory (factorizations, algebraic number theory, elliptic curves…), but also contains a large number of other useful functions to compute with mathematical entities such as matrices, polynomials, power series, algebraic numbers etc., and a lot of transcendental functions. PARI is also available as a C library to allow for faster computations.

Originally developed by Henri Cohen and his co-workers (Université Bordeaux I, France), PARI is now under the GPL and maintained by Karim Belabas with the help of many volunteer contributors.

## License

GPL version 2+

## Upstream Contact

- http://pari.math.u-bordeaux.fr/

## Dependencies

- Perl

- MPIR or GMP

- Readline

- GNU patch (shipped with Sage)

## Special Update/Build Instructions

See patches/README.txt for a list of patches.

The current upstream tarball was created from the PARI git repository by running “make snapshot”.

## Type

standard

## Dependencies

- $(MP_LIBRARY)

- pari_galdata: PARI data package needed to compute Galois groups in degrees 8 through 11

- pari_seadata_small: PARI data package needed by ellap for large primes (small version)

- readline: Command line editing library

## Version Information

package-version.txt:

    2.17.1

## Equivalent System Packages

Alpine

    $ apk add pari-dev

Arch Linux

    $ sudo pacman -S pari pari-galdata pari-seadata pari-elldata  \
          pari-galpol

conda-forge

    $ conda install 'pari=*=*_pthread' pari-elldata pari-galdata  \
          pari-galpol pari-seadata

Debian/Ubuntu

    $ sudo apt-get install pari-gp2c libpari-dev pari-doc pari-elldata  \
          pari-galdata pari-galpol pari-seadata

Fedora/Redhat/CentOS

    $ sudo dnf install pari-devel pari-gp pari-galdata pari-galpol  \
          pari-seadata pari-elldata

FreeBSD

    $ sudo pkg install math/pari

Gentoo Linux

    $ sudo emerge sci-mathematics/pari sci-mathematics/pari-data

Homebrew

    $ brew install pari pari-elldata pari-galdata pari-galpol pari-seadata

MacPorts

No package needed.

Nixpkgs

    $ nix-env --install pari

openSUSE

    $ sudo zypper install pari-devel pari-gp

Void Linux

    $ sudo xbps-install pari pari-devel pari-elldata-small pari-galdata  \
          pari-galpol-small pari-seadata

See https://repology.org/project/pari/versions, https://repology.org/project/pari-gp/versions, https://repology.org/project/pari-data/versions, https://repology.org/project/pari-elldata/versions, https://repology.org/project/pari-galdata/versions, https://repology.org/project/pari-galpol/versions, https://repology.org/project/pari-nftables/versions, https://repology.org/project/pari-seadata/versions, https://repology.org/project/pari-seadata-big/versions

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