Python Pari Library?

Pari / GP is an excellent library for functions related to number theory. The problem is that there seems to be no updatable shell for python anywhere ( pari-python is using the old version of pari), and I am wondering if anyone knows of any other library / shell similar to pari or one that uses pari.

I know SAGE, but it's too big for my needs. GMPY works fine, but there are some internal pari functions that I skip, and I would rather use python than the provided GP environment. NZMATH, mpmath, scipy, and sympy were also taken into account.

In the corresponding note, does anyone have any suggestions on downloading the pari dll itself and using the functions contained in it? I tried to achieve very little success except loading it and examining function pointers.

+4
source share
1 answer

Actually, pari-python works with the latest stable version of PARI. And it is very easy to use:

>>> from pari import * >>> fibonacci(100) 354224848179261915075 >>> intnum(0,1,lambda x:x**2) 0.3333333333333333333333333333 >>> 
+3
source

Source: https://habr.com/ru/post/1304966/


All Articles