I want to know how to access some member variable of a pari type that comes out of giac/giacpy. Here is an example:
Code : Tout sélectionner
from giacpy import giac
giac("printpow(1)")
giac("pari()")
nfinit = giac("nfinit")
galoisinit = giac("galoisinit")
f = giac("t^3-3*t+1") #splitting field has primitive element which is a root of f
G=galoisinit(nfinit(f))
G.group
What I wanted to do is the following:
Code : Tout sélectionner
permtopol=giac("galoispermtopol")
permtopol(G,G.group)
#even permtopol(G,G[5]) does not work, result is "undef"
If interested, these are all the roots of t^3-3*t+1 expressed as an algebraic expression with respect to one specific root of the polynomial.
I could of course, straight away run a gp script.. but I wanted to take advantage of python and giacpy here as well (I am doing a lot of algebra here which giacpy has better features than pari)
Jose