I'm looking for an automated way to turn a decimal value into a fraction in the PARI/GP calculator (gp). For example, I want to turn 0.759765625 into 389/512. I know I can do this manually by typing in '759765625/10^9', but I'd like an easier way, like 'rationalize(0.759765625);' would work in Maxima.
If it can't do this directly, maybe...
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...
Alright, so a couple days ago I decided to try and write a primitive wrapper for the PARI library. Ever since then I've been playing with ctypes library in loading the dll and accessing the functions contained using code similar to the following:
from ctypes import *
libcyg=CDLL("<path/cygwin1.dll") #It needs cygwin to be loaded. Not su...
I am new to using the PARI C library.
How can I perform bitwise ('and' or 'or') operations on the GEN type variables?
...
Hi all,
Iam trying to use pari c library, Iam new to it.whenever iam trying to use any function i am geting segmentation fault or stack overflown error.Can any one please provide me the link to know detail functionality of each and every constructs,functions in pari c.I want to use sets,vectors also.is there any function like power of ...