<h4>PARI/GP</h4>
<p>
Il est possible d'entrer un programme  condition de le mettre entre parenthses :
par exemple,les lignes
\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)))}
<span class="tt wims_code_words">
\\def{text a=random(0,1)}
<br/>\\def{integer b=randint(10..100)}
<br/>\\def{text N=pari((f(n)=local(m) ; m=if(n==0, n, factor(\\b)));print(f(\\a)))}</span>

permettent d'obtenir la factorisation de \b si un nombre pris au hasard a = \a ne vaut pas 0 et 0 sinon :
N=\N (pour essayer,
\reload{<img src="gifs/doc/etoile.gif" alt="rechargez" style="width:20px;height:20px;"/>}
)
</p><p>
La commande <span class="tt wims_code_words">random </span> de Pari/GP tant incompatible avec celle de wims,
on crit <span class="tt wims_code_words"> random&#92;(125) </span>. Dans ce cas, la commande
<span class="tt wims_code_words">random</span> est envoye  Pari/GP sans tre interprte mais le "\\" est retir.
</p><p>
\def{text A=pari(print(matrix(4,5,i,j,random\(257))))}
 Exemple : dfinir une matrice de taille 4,5 avec des coefficients alatoires pris entre 0 et 256.
Voici la matrice \(A= [\A])
obtenue  partir de la ligne suivante

<span class="tt wims_code_words">
\\def{text A=pari(print(matrix(4,5,i,j,random&#92;(257))))}
</span>
</p>
