Il faut lire la doc un minimum.
Tu ouvres un terminal et tu lances gp en tapant gp.
Après quelques lignes d'accueil, le prompt apparaît sous forme d'un point d'interrogation.
Tu tapes ta requête, par exemple 2+2 et tu valides.
gp répond %1 4
Tu es rassuré, maintenant tu sais que 2+2=4.
jjr@zoe:~$ gp
Reading GPRC: /etc/gprc ...Done.
GP/PARI CALCULATOR Version 2.3.5 (released)
i486 running linux (ix86/GMP-5.0.1 kernel) 32-bit version
compiled: Mar 18 2011, gcc-4.5.2 (Debian 4.5.2-6)
(readline v6.2 enabled [was v6.1 in Configure], extended help not available)
Copyright (C) 2000-2006 The PARI Group
PARI/GP is free software, covered by the GNU General Public License, and comes WITHOUT ANY
WARRANTY WHATSOEVER.
Type ? for help, \q to quit.
Type ?12 for how to get moral (and possibly technical) support.
parisize = 4000000, primelimit = 500000
? 2+2
%1 = 4
?
documentation pari-gp