Previous Up Next

Examples

To recover an object o with integer coefficients instead of modular coefficients, input o % 0. For example:
Input:

o:=4%7;:
o%0

Output:

−3


Remark. Most Xcas functions that work on integers or polynomials with integer coefficients will often work the same on ℤ/pℤ or ℤ/pℤ[x], with the obvious exception that the input and output will be modular. They will be listed in the remaining subsections. For some commands in ℤ/pℤ or in ℤ/pℤ[x], p must be a prime integer.

  • In Maple mode, integers modulo p are represented like usual integers instead of using specific modular integers. To avoid confusion with normal commands, modular commands are written with a capital letter (inert form) and followed by the mod command.

    The Maple commands will be discussed in Section 5.35.


  • Previous Up Next