(gcd integer1 integer2)


Calculate the greatest common denominator.


This function returns the greatest common denominator between integer1 and integer2. Both numbers must be integers. Use the fix function to create integers out of real numbers.

Examples

Code Returns
(gcd 39 45) 3
(gcd 40 45) 5

Tell me about...

(max number1 number2 )

(min number1 number2 )

(rem number1 number2 [number3 ...])

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language