euclidean: Euclidean Algorithm

Description Usage Arguments Details Value Examples

View source: R/euclidean.R

Description

euclidean returns the greatest common divisor of two input (a,b) values.

Usage

1
euclidean(a, b)

Arguments

a

Must be numeric scalar or integer

b

Must be numeric scalar or integer

Details

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

Value

The greatest common divisor of a and b

Examples

1
2
3
4
5
6
euclidean(100,10)

## Not run: 
euclidean('dog','cat')

## End(Not run)

faridmusayev/R_Lab03 documentation built on Dec. 20, 2021, 7:44 a.m.