Introduction to GMP - Maple Programming Help

Introduction to GMP

Maple uses the GMP library to perform arbitrary-precision integer arithmetic. For more information about GMP, see ?gmp.

Arbitrary-precision integer arithmetic involves working with numbers that are too large to fit into hardware integers. In Maple, the greatest number that can be represented by hardware integer is given by

 > kernelopts(maximmediate);

 ${1073741823}$ (1)

Integers greater than the above are represented by software integers. Arithmetic for software integers requires special algorithms for large integer arithmetic. To illustrate exact arbitrary-precision integer arithmetic in Maple, consider the following examples.