euclidean: Find the greatest common divisor of two numbers

Description Usage Arguments Value See Also Examples

View source: R/euclidean.R

Description

euclidean returns the greatest common divisor of two values provided as arguments. Pseudocode taken from the Wikipedia page for the Euclidean algorithm.

Usage

1
euclidean(a, b)

Arguments

a, b

Non negative integers.

Value

Greatest common divisor of a and b.

See Also

https://en.wikipedia.org/wiki/Euclidean_algorithm

Examples

1
euclidean(100, 1000)

Er-Prakhar/Lab003 documentation built on Dec. 17, 2021, 7:21 p.m.