Jean-Marc Sac-Epée on Fri, 11 Feb 2000 00:30:10 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

gisirreducible


Hello,

I would like to use gisirreducible in a C program to test some polynomials, but I really don't find the correct way of using this function.
If I define pol as a polynomial, others functions (polroots, gsubst) work perfectly well, but I don't know the type of gisirreducible(pol). Is it an int, a t_INT?  Attempts like

"output(gisirreducible(pol));" or "printf("%d\n",gisirreducible(pol));" or "if(gcmp1(gisirreducible(pol)))" and so on can always be compiled, but execution yields something like

x^11 - 11*x^9 + 43*x^7 - 70*x^5 - 2*x^4 + 41*x^3 + 7*x^2 - 5*x - 2
  ***   segmentation fault: bug in PARI or calling program.

  ***   Error in the PARI system. End of program.

Can anybody help me?

Thanking you in anticipation,

J.-M.
 

-- 
Jean-Marc Sac-Epée, Ingénieur de Recherche
Université de Metz, Laboratoire de Mathématiques
Tél     03 87 54 72 69
Fax     03 87 31 52 73
Mail    jmse@poncelet.univ-metz.fr
URL     http://poncelet.sciences.univ-metz.fr/~jmse