No description, website, or topics provided.
Python C
Permalink
Failed to load latest commit information.
autogen
cypari2
.gitignore
LICENSE
MANIFEST.in
README.md
setup.cfg
setup.py

README.md

CyPari 2

A Python interface to the number theory library libpari.

This library supports both Python 2 and Python 3

Installation

1) Install libpari

2) Clone the cypari2 project

3) Install with pip

$ cd where_I_cloned_cypari2
$ pip install .

Usage

Just launch Python and then you can perform some PARI/GP computation inside python

>>> import cypari2
>>> pari = cypari2.Pari()
>>> pari(2).zeta()
1.64493406684823
>>> K = pari("bnfinit(x^3 - 2)")
>>> K.bnfunit()
[x - 1]

Issues

1) If you change your PARI installation you need to recompile cysignals and cypari2 using the --no-cache-dir option of pip

 pip install cysignals --no-cache-dir --force-reinstall [--user]
 pip install cypari2 --no-cache-dir --force-reinstall [--user]

Contributing

Submit pull request or get in contact with Luca De Feo.