PARI/GP

What PARI/GP is
PARI/GP is a free, open-source computer algebra system for fast number-theory work. Its functions cover factorization, algebraic number theory, elliptic curves, modular forms, L-functions, matrices, polynomials, power series, algebraic numbers, and transcendental functions. PARI is available as a C library; gp provides an interactive shell and GP is its scripting language. The gp2c compiler translates some GP scripts to C and can make compiled scripts three or four times faster, but it supports only part of GP. The official site also offers a browser-based GP interface for entering expressions, assigning variables, and defining functions; its speed is approximately 15% of native speed. Xeus-GP provides a Jupyter kernel. Optional packages are distributed separately because of their disk-space demands. The project offers manuals, tutorials, and quick reference cards, with help through its mailing list and bug tracker. It is free software under the GNU General Public License, version 2 or later.
Who it suits
PARI/GP suits people doing number-theory computations who want a free tool available across desktop, mobile, and web platforms. Its C library, scripting language, and Jupyter kernel also serve users who want different ways to work with its mathematics.
What it does well
- Broad functions for number theory and related mathematics
- C library, interactive shell, and scripting language
- Browser interface supports expressions, variables, and functions
- Manuals, tutorials, and quick reference cards are available
What to know first
- Browser interface runs at approximately 15% of native speed
- gp2c supports only a subset of GP
- Optional packages are distributed separately
Limits
The browser interface runs at approximately 15% of native speed. gp2c compiles only a subset of GP, and optional packages are distributed separately.
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| PARI/GP | GPL v2 or later · Optional packages distributed separately | Free |
As pari.math.u-bordeaux.fr lists them, read 11 Oct 2026. The maker's own page has the final word.
Getting started
- Visit the official PARI/GP website.
- Choose a listed platform: Android, Linux, macOS, web, or Windows.
- Use the browser-based GP interface to enter expressions, assign variables, and define functions.
- For other workflows, use the C library, gp interactive shell, GP scripting language, or Xeus-GP Jupyter kernel.
Verdict
PARI/GP offers a wide range of mathematical functions in a free package with several interfaces. The browser version is slower than native use, and some functionality, including gp2c compilation, has stated limitations.
Questions
How much does PARI/GP cost?
The listed plan is free: free. It is released under the GNU General Public License, version 2 or later.
Which platforms does PARI/GP support?
The listed platforms are Android, Linux, macOS, web, and Windows.
What kinds of mathematics does it cover?
Its functions include factorization, algebraic number theory, elliptic curves, modular forms, L-functions, matrices, polynomials, power series, algebraic numbers, and transcendental functions.
Can I use PARI/GP in a browser or Jupyter?
The official site provides a browser-based GP interface, and Xeus-GP is a Xeus-based Jupyter kernel for PARI/GP. The browser interface's stated speed is approximately 15% of native speed.
Who maintains PARI/GP?
The project says it has been developed at the University of Bordeaux since the early eighties and is maintained by volunteers.
Facts from PARI/GP's own pages
- Browser performance
- The browser version page states that its speed is approximately 15% of native speed. · pari.math.u-bordeaux.fr, 11 Oct 2026
- Browser use
- The official site provides a browser-based GP interface where users can enter expressions, assign variables, and define functions. · pari.math.u-bordeaux.fr, 11 Oct 2026
- Build dependencies
- The source build instructions say GNU MP and GNU readline are optional but make the calculator faster and more user-friendly, respectively. · pari.math.u-bordeaux.fr, 11 Oct 2026
- Compiler
- gp2c compiles GP scripts to C, typically making compiled scripts three or four times faster, but it supports only a subset of GP. · pari.math.u-bordeaux.fr, 11 Oct 2026
- Documentation
- The site provides an online user's guide, reference manuals, tutorials, quick reference cards, and downloadable manuals. · pari.math.u-bordeaux.fr, 11 Oct 2026
- Founded
- 1983 · pari.math.u-bordeaux.fr, 28 Sept 2026
- Interfaces
- PARI is available as a C library, while gp is an interactive shell and GP is its scripting language. · pari.math.u-bordeaux.fr, 11 Oct 2026
- License
- PARI/GP is free software released under the GNU General Public License, version 2 or any later version. · pari.math.u-bordeaux.fr, 11 Oct 2026
- Maintainers
- The project says it has been developed at the University of Bordeaux since the early eighties and is maintained by volunteers. · pari.math.u-bordeaux.fr, 11 Oct 2026
- Mathematical work
- It includes functions for factorization, algebraic number theory, elliptic curves, modular forms, L-functions, matrices, polynomials, power series, algebraic numbers, and transcendental functions. · pari.math.u-bordeaux.fr, 11 Oct 2026
- Notebook integration
- Xeus-GP is described as a Xeus-based Jupyter kernel for PARI/GP. · pari.math.u-bordeaux.fr, 11 Oct 2026
- Optional packages
- Optional packages are distributed separately because they use significant disk space and are expected to be unnecessary for most users. · pari.math.u-bordeaux.fr, 11 Oct 2026
- Platforms
- The official download page offers binaries for Windows, macOS, and Android, and source distributions for building PARI/GP. · pari.math.u-bordeaux.fr, 11 Oct 2026
- Purpose
- PARI/GP is a cross-platform, open-source computer algebra system designed for fast number-theory computations. · pari.math.u-bordeaux.fr, 11 Oct 2026
- Support
- The project directs users to the pari-users mailing list for help and provides a bug tracking system for bug reports and feature requests. · pari.math.u-bordeaux.fr, 11 Oct 2026
Where PARI/GP stands on Freedom251
- Math Solver Apps#27 of 68