euclidean: Euclidean algorithm

Description Usage Arguments Value Author(s) References Examples

View source: R/euclidean.R

Description

Euclidian algorithm to find the greatest common divisor of two numbers

Usage

1
euclidean(a, b)

Arguments

a

An integer

b

An integer

Value

The greatest common divisor of a and b

Author(s)

Simon and Mohamed

References

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

Examples

1
2
euclidean(123612, 13892347912)
euclidean(100, 1000)

Elmahi92/smplab documentation built on Dec. 17, 2021, 6:28 p.m.