Quique Becerra on Sun, 02 Oct 2005 17:28:50 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Help to convert a function |
Hi people Can any1 help me to convert a function to PARI ? It's made in c++, and need help to make this function work in PARI --------------------------------------- int quick_exp (int a, int b) { int z, x, resul; z = b; x = a; resul = 1; while(z > 0) { if(z % 1 == 1) resul = resul * x; x = x*x; z = z/z; } return(resul); } --------------------------------------- Thanks a lot in advance.