CASTI-89 TITANIUM · CALC89
gcd(
Returns the greatest common divisor of two integers.
Syntax
gcd(a, b)
- Group
- Number functions
- Arguments
- Takes two integers a and b.
- Availability
- Included
- Menu path
- MATH ▸ Number ▸ gcd(
Example
| Input | Result |
|---|---|
| gcd(12,18) | 6 |
Typing gcd(12,18) on the home screen and pressing ENTER returns 6.
Keystrokes on the TI-89 Titanium
2NDMATH19
The same key sequence inserts gcd( in Calc89, and the AI tutor shows it step by step on the on-screen keypad.
Related commands
- imag(Returns the imaginary part of a complex number.
- iPart(Returns the integer part of a number, truncated toward zero.
- lcm(Returns the least common multiple of two integers.
- ln(Returns the natural logarithm of a value, the logarithm to base ℯ.
- log(Returns the common logarithm of a value, or the logarithm to a given base.
- max(Returns the larger of two values, or the largest element of a list.
- min(Returns the smaller of two values, or the smallest element of a list.
- mod(Returns a modulo b, the remainder of the division with the sign of b.