HCF {blocksdesign}R Documentation

Finds hcf of any set of positive integers

Description

Finds the highest common factor (hcf) of a set of integer numbers greater than zero (Euclidean algorithm).

Usage

HCF(...)

Arguments

...

any set of positive integers, in any order, for which the hcf is required.

Details

Finds the hcf of any set of positive integers which can be in any order.

Value

hcf

References

Euclidean algorithm, see:https://mathworld.wolfram.com/EuclideanAlgorithm.html

Examples


# hcf of vectors of integers
HCF(56,77,616)
HCF(3,56,77,616) 


[Package blocksdesign version 4.9 Index]