11.07.2015 Views

Maple 9 Learning Guide - Maplesoft

Maple 9 Learning Guide - Maplesoft

Maple 9 Learning Guide - Maplesoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.2 Numerical Computations • 9Table 2.1 Commands for Working with IntegersFunction Descriptionabs absolute value of an expressionfactorial factorial of an integeriquo quotient of an integer divisionirem remainder of an integer divisioniroot approximate integer root of an integerisqrt approximate integer square root of an integermax, min maximum and minimum of a set of inputsmod modular arithmeticsurd real root of an integerCommands for Working With Integers<strong>Maple</strong> has many commands for working with integers, some of whichallow for calculations of the factorization of an integer, the greatest commondivisor (gcd) of two integers, integer quotients and remainders, andprimality tests. See the following examples, as well as Table 2.1.> ifactor(60);(2) 2 (3) (5)> igcd(123, 45);3> iquo(25,3);8> isprime(18002676583);true

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!