PARI/GP in use on Windows XP
Developer(s) Henri Cohen, Karim Belabas, et al., at the Université Bordeaux 1
Stable release 2.5.0 / June 22, 2011
Written in C
Operating system Cross-platform
Type Computer algebra system
License GNU General Public License

PARI/GP is a computer algebra system with the main aim of facilitating number theory computations. It is free software; versions 2.1.0 and higher are distributed under the GNU General Public License. It runs on most common operating systems.


System overview

The PARI/GP system is a package that is capable of doing formal computations on recursive types at high speed; it is primarily aimed at number theorists. Its three main strengths are its speed, the possibility of directly using data types that are familiar to mathematicians, and its extensive algebraic number theory module.

The PARI/GP system consists of the following standard components:

  • PARI is a C library, allowing for fast computations, and which can be called from an upper-level language application (for instance, written in C, C++, Pascal, Fortran, Perl, or Python).
  • gp is an easy-to-use interactive command line interface giving access to the PARI functions. It functions as a sophisticated programmable calculator which contains most of the control instructions of a standard language like C. GP is the name of gp's scripting language which can be used to program gp.

Also available is gp2c, the GP-to-C compiler, which compiles GP scripts into the C language and transparently loads the resulting functions into gp. The advantage of this is that gp2c-compiled scripts will typically run three to four times faster. Currently, gp2c only understands a subset of the GP language.

PARI/GP performs arbitrary precision calculations (e.g., the significand can be millions of digits long—and billions of digits on 64-bit machines). It can compute factorizations, perform elliptic curve computations and perform algebraic number theory calculations. It also allows computations with matrices, polynomials, power series, algebraic numbers and implements many special functions.

PARI/GP comes with its own built-in graphical plotting capability. PARI/GP has some symbolic manipulation capability, e.g., multivariate polynomial and rational function handling. Its formal integration and differentiation capabilities are less than more sophisticated computer algebra systems like Mathematica.

PARI/GP can be compiled with GMP (GNU Multiple Precision Arithmetic Library) providing faster computations than PARI/GP's native arbitrary precision kernel.


PARI/GP was originally developed in 1985 by a team led by Henri Cohen at Laboratoire A2X and is now maintained by Karim Belabas at the Université Bordeaux 1 with the help of many volunteer contributors. PARI/GP's progenitor was a program named ISABELLE, an interpreter for higher arithmetic written in 1979 by Henri Cohen and François Dress (of the Université Bordeaux 1 as well).


The name PARI is a pun about the project's early stages when the authors started to implement a library for "Pascal ARIthmetic" in the Pascal programming language (although they quickly switched to C), and after "pari de Pascal" (Pascal's Wager).[1]

The first version of the gp calculator was originally called GPC, for Great Programmable Calculator. For some reason, the trailing C was eventually dropped.[1]

Usage examples

Below are some samples of the gp calculator usage:

? \p 212
   realprecision = 221 significant digits (212 digits displayed)
? (1.378-0.09143*I)^(14.87+0.3721*I)
time = 0 ms.
%1 = 80.817082637557070449383034933010288336925078193546211741027496566803185
3272488827365261487845201056199035423784093096984005713791800191 - 94.8384618

? 123456! + 0.
time = 1,656 ms.
%2 = 2.6040699049291378729513930560926568818273270409503019584610185579952057
4317244121152865814030204645985573419251305342231135573491050756 E574964

? sin(x)
time = 0 ms.
%3 = x - 1/6*x^3 + 1/120*x^5 - 1/5040*x^7 + 1/362880*x^9 - 1/39916800*x^11
+ 1/6227020800*x^13 - 1/1307674368000*x^15 + O(x^17)

? for(z=25,30, print (factor(2^z-1)))
[31, 1; 601, 1; 1801, 1]
[3, 1; 2731, 1; 8191, 1]
[7, 1; 73, 1; 262657, 1]
[3, 1; 5, 1; 29, 1; 43, 1; 113, 1; 127, 1]
[233, 1; 1103, 1; 2089, 1]
[3, 2; 7, 1; 11, 1; 31, 1; 151, 1; 331, 1]
time = 5 ms.

? K = bnfinit(x^2 + 23); K.cyc
time = 1ms.
%4 = [3]
/* This number field has class number 3. */

See also


  1. ^ a b "TRIVIA" section of "Manpage of GP," August 10, 2004

External links

Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • pari — pari …   Dictionnaire des rimes

  • pari — [ pari ] n. m. • 1642; de parier 1 ♦ Convention par laquelle deux ou plusieurs parties s engagent à verser une certaine somme (⇒ enjeu) au profit de celle qui aura raison. Engager, faire un pari. ⇒ parier. Gagner, perdre un pari, son pari. Pari… …   Encyclopédie Universelle

  • pari (1) — {{hw}}{{pari (1)}{{/hw}}A agg. inv. 1 Uguale, che corrisponde esattamente: essere pari di età; essere pari per condizione sociale; essere pari in bellezza; un coraggio pari alla sua astuzia | Di pari passo, (fig.) contemporaneamente. 2 Privo di… …   Enciclopedia di italiano

  • Päri — (auch: Lokoro) Gesprochen in Sudan Sprecher ca. 28.000 (Stand von 1987) Linguistische Klassifikation Nilo saharanische Sprachen Nilotische Sprachen Westnilotische Sprachen Luo Sprachen …   Deutsch Wikipedia

  • pari — Pari. s. m. Gageure, promesse reciproque par laquelle deux ou plusieurs personnes qui soustiennent des choses contraires, s engagent de payer une certaine somme à celuy dont la proposition se trouvera veritable. On a fait un grand pari. le pari… …   Dictionnaire de l'Académie française

  • pari — Element prim de compunere savantă cu semnificaţia egal . [< it. pari , cf. lat. par]. Trimis de LauraGellner, 12.07.2005. Sursa: DN  PARI elem. egal . (< it. pari , cf. lat. par) Trimis de raduborza, 15.09.2007. Sursa: MDN …   Dicționar Român

  • pârî — PÂRÎ, pârăsc, vb. IV. tranz. (Folosit şi absol.) 1. A se plânge de faptele cuiva; a reclama. ♦ A acuza, a învinui. ♦ A da pe faţă în mod răutăcios faptele cuiva, adesea exagerând sau minţind; a vorbi de rău; a denunţa. 2. (înv.) A da pe cineva în …   Dicționar Român

  • Pari — (ital.), 1) die völlige Gleichheit einer Anzahl verschiedener Münzsorten nach ihrem Gehalt an edlem Metall; als Maßstab wird dabei die Kölnische Mark zu 16 Loth sein Silber angenommen. Eine Münze steht über P., wenn sie höher ausgegeben wird, als …   Pierer's Universal-Lexikon

  • Pari — (ital., franz. pair, engl. par), gleich, insbes. dem Nennwert oder Nominalgehalt gleich, vorzüglich zur Bezeichnung des Kursstandes von Geld und Wertpapieren gebraucht. Münzen stehen p. oder al pari (»auf dem gleichen«, franz. an pair), wenn ihr… …   Meyers Großes Konversations-Lexikon

  • Pari — Pari, s. Al pari …   Kleines Konversations-Lexikon

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”