Category:PARI/GP

From Rosetta Code
Revision as of 06:43, 1 July 2011 by rosettacode>CRGreathouse (New "using" section; move existing one to "Coding with PARI")
Language
PARI/GP
This programming language may be used to instruct a computer to perform a task.
Official website
Execution method: Interpreted or compiled
Garbage collected: Yes
Parameter passing methods: By reference, By value
Type strength: Weak
Type checking: Dynamic
See Also:
Listed below are all of the tasks on Rosetta Code which have been solved using PARI/GP.

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/GP is composed of two parts: a C library called PARI and an interface, gp, to this library. GP scripts are concise, easy to write, and resemble mathematical language. (Terminology: the scripting language of gp is called GP.)

PARI was written by Henri Cohen and others at Université Bordeaux I and is now maintained by Karim Belabas. gp was originally written by Dominique Bernardi, then maintained and enhanced by Karim Belabas and Ilya Zakharevich, and finally rewritten by Bill Alombert.

Using PARI/GP

PARI/GP can be downloaded at its official website's download page.

For Windows users there are precompiled binaries in four versions: full-featured binaries (slightly old) in both a stable and a development version, a more recent stable version without plotting and line-completion, and a similarly bare-bones build ofthe latest bleeding-edge version.

Mac users may find it convenient to download the version from Fink.

Linux users can install PARI/GP with their favorite package manager (RPM, dpkg, apt, etc.) or build it from source. Instructions are available for compiling.

Coding with PARI

The most common way to use PARI is through the gp calculator, using its own scripting language, GP. But there are other interfaces to PARI beside gp:

If you want to write a program rather than script a calculator, many languages are supported:

  • C: PARI is written in C, so it's very easy to either write your own programs or extend gp using C.
  • C++: With appropriate linkage specification it is possible to use PARI directly in C++ as well.
  • Python: SAGE is a Python-based system that includes PARI among others; there is a pari-python library as well.
  • Perl: Use Math::Pari.
  • CLISP: Use Pari.

See also

Resources

General

Tutorials

Papers on PARI/GP

Subcategories

This category has the following 3 subcategories, out of 3 total.

Pages in category "PARI/GP"

The following 200 pages are in this category, out of 606 total.

(previous page) (next page)
(previous page) (next page)