euclidean: Euclidean algorithm to find greatest common divisor.

Description Usage Arguments Value Source

View source: R/euclid.R

Description

The algorithm replaces larger of the two numbers by the remainder when divided by smaller of two numbers and stops when remainder equals zero.

Usage

1
euclidean(x, y)

Arguments

x

a numeric scalar.

y

another numeric scalar.

Value

The greatest common divisor of two numbers passed in as arguments.

Source

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


venkatavarun-123/R_LAB3 documentation built on Dec. 23, 2021, 3:02 p.m.