Skip to main content

An interface to the number theory library libpari

Project description

# CyPari 2

[![Build Status](https://travis-ci.org/defeo/cypari2.svg?branch=master)](https://travis-ci.org/defeo/cypari2)

A Python interface to the number theory library [libpari](http://pari.math.u-bordeaux.fr/).

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 . ` Note that any other kind of installation program is not supported. In particular, python setup.py install does NOT work.

## 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](http://defeo.lu/).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cypari2-1.0.0.tar.gz (113.2 kB view details)

Uploaded Source

File details

Details for the file cypari2-1.0.0.tar.gz.

File metadata

  • Download URL: cypari2-1.0.0.tar.gz
  • Upload date:
  • Size: 113.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cypari2-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c7402b347e94ebf30211504ea9d30aac7fdc0a2715cdc3dba143a45205aa8a8f
MD5 b1ff519041d080df2c5a291eb8936104
BLAKE2b-256 6a3ec6bbac12c804829d7afb6d07d61ff6e6e0e2a8a8cbf913ed9e3d28d82321

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page