pari

Getting an Array/Vector from PARI/GP in Python using Ctypes

Getting an Array/Vector from PARI/GP in Python using Ctypes Question: I have written a code to compare the solution of sympy and PARI/GP, how ever I am facing a problem to get an array/vector from PARI/GP. When I try to return the vector res from PARI/GP function nfroots, I get a address like this (see …

Total answers: 1

Sending a Polynomial to PARI/GP from Python (ctypes)

Sending a Polynomial to PARI/GP from Python (ctypes) Question: I would like to call nfroots({nf}; x) function of PARI/GP from Python. (see function no 3.13.135.on page 371 in this link:), but the probllem is, I couldn’t send the algebraic expression or the polynomial, that need to be send, for example, x^2-7x+12, here is a very …

Total answers: 1