Learn R Programming

arkhe (version 1.10.0)

math_gcd: Greatest Common Divisor

Description

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)

Value

A numeric vector.

Arguments

x, y

A numeric vector.

Author

N. Frerebeau

See Also

Other mathematic functions: math_lcm()