#### PARI/GP

It is possible to use a program in Pari: for that, put it between parenthesis: for example, the lines \def{text a=random(0,1)} \def{integer b=randint(10..100)} \def{text N=pari((f(n)=local(m) ; m=if(n==0, n, factor(\b)));print(f(\a)))}

    \\def{text a=random(0,1)}

    \\def{integer b=randint(10..100)}

    \\def{text N=pari((f(n)=local(m) ; m=if(n==0, n, factor(\\b)));print(f(\\a)))}

Example: output the factorisation of \b if some random number a=\a equals 0 et 0 otherwise : N=\N (try \reload{} )

The Pari command random de Pari/GP is incompatible with WIMS' one ; so write random\(125) in Pari/GP. In this cases, random is sent to Pari/GP with no interpretation but "\\" is taken away.

\def{text A=pari(print(matrix(4,5,i,j,random\(257))))} Example : define a matrix of size 4,5 with random coefficients between 0 and 256 : \(A= [\A])

\\def{text A=pari(print(matrix(4,5,i,j,random\(257))))}