Skip to contents

Computes the greatest common divisor (GCD) of two integer using the Euclidean algorithm.

Usage

math_gcd(x, y)

# S4 method for numeric,numeric
math_gcd(x, y)

Arguments

x, y

A numeric vector.

Value

A numeric vector.

See also

Other mathematic functions: math_lcm()

Author

N. Frerebeau