### 2.5.2 Language mode

Xcas has its own language which it uses by default, but you can also use either Python (with the option having the ^ character represent either exponentiation or the exclusive or operator) or the language used by Maple, MuPAD, or the TI89 calculator.

You can set which language Xcas uses in the CAS configuration screen (see Section 2.5.7). You can also set the language with the xcas_mode command.

- The xcas_mode command takes an integer: 0, 1, 2, 3, 256 or 512.
  - xcas_mode(0) to use the Xcas language.
  - xcas_mode(1) to use the Maple language.
  - xcas_mode(2) to use the MuPAD language.
  - xcas_mode(3) to use the TI89 language.
  - xcas_mode(256) to use the Python language with ^ representing exponentiation.
  - xcas_mode(512) to use the Python language with ^ representing exclusive or.

The language you choose will be stored in the configuration file (see Section 2.5.10), and so can also be set there.