The ^ operator raises modular numbers and polynomials to powers in ℤ/pℤ. (See also Section 6.8.2.) For polynomial expressions, use the normal command to simplify. Xcas uses the binary power algorithm to compute this.
Examples.
⎛ ⎝ | −1 | ⎞ ⎠ | %13 |
⎛ ⎝ | 6%13 | ⎞ ⎠ | x5+ | ⎛ ⎝ | 2%13 | ⎞ ⎠ | x4+ | ⎛ ⎝ | 2%13 | ⎞ ⎠ | x3+ | ⎛ ⎝ | 1%13 | ⎞ ⎠ | x2+ | ⎛ ⎝ | ⎛ ⎝ | −3 | ⎞ ⎠ | %13 | ⎞ ⎠ | x+1%13 |