pari

Copying numbers from PARI/GP

不打扰是莪最后的温柔 提交于 2019-12-11 04:09:11
问题 I have a problem, for which there probably is an easy solution. Suppose, I have calculated a large number in PARI/GP, lets say, 10,000 digits long. I want to copy this number in a normal text file, such that it can be copied back to PARI/GP. The problem is, that the program does not avoid (hidden) new-line-marks, so if I copy the number back, it cannot be read by PARI. The print1-command does not help either. I had two non-satisfactionary ideas : 1) Copying in an editor, using the backspace

Python Pari Library?

跟風遠走 提交于 2019-12-06 06:18:40
问题 Pari/GP is an excellent library for functions relating to number theory. The problem is that there doesn't seem to be an up to date wrapper for python anywhere around, (pari-python uses an old version of pari) and I'm wondering if anyone knows of some other library/wrapper that is similar to pari or one that uses pari. I'm aware of SAGE, but it's far too large for my needs. GMPY is excellent as well, but there are some intrinsic pari functions that I miss, and I'd much rather use python than