GMP - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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.

 

Return to Index for Example Worksheets