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()


tesselle/arkhe documentation built on Feb. 22, 2024, 8:18 p.m.