math_gcd: Greatest Common Divisor

math_gcdR Documentation

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 signature 'numeric,numeric'
math_gcd(x, y)

Arguments

x, y

A numeric vector.

Value

A numeric vector.

Author(s)

N. Frerebeau

See Also

Other mathematic functions: math_lcm()


arkhe documentation built on Nov. 17, 2023, 5:09 p.m.