### 7.2.10 Access to PARI/GP commands

PARI/GP2 is a computer algebra system which focuses on number theory. Xcas can use the PARI/GP functions with the pari command.

The arguments of pari depends on the PARI/GP function it is using.

- pari with a string as first argument (the PARI command name) executes the corresponding PARI command with the remaining arguments. For example pari("weber",1+i) executes the PARI command weber(1+i).
- pari without any argument exports all PARI/GP functions to Xcas with the prefix pari_. If the name of a PARI function is not also the name of an Xcas command, that function will also be exported without the prefix.

For example, after calling pari(), the commands pari_weber(1+i) and weber(1+i) will execute the PARI command weber(1+i).

The documentation of PARI/GP is available with the menu Help ▸ Manuals.