java.lang.Object
org.zfcj.math.numbers.LeastCommonMultiple
- All Implemented Interfaces:
org.zfcj.math.set.Function<Integer[],
,Integer> org.zfcj.math.set.relation.BinaryRelation<Integer[],
Integer>
public class LeastCommonMultiple
extends Object
implements org.zfcj.math.set.Function<Integer[],Integer>
A
Function
that calculates the least common multiple of a set
of Integer
s-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApplies the function to the given input element x and returns its corresponding output elementstatic Integer
calculate
(int... ints) Returns the least common multiple of the given integersstatic Integer
calculate
(long... longs) Returns the least common multiple of the given longsstatic Integer
calculate
(BigInteger... bigs) Returns the least common multiple of the given integersstatic Integer
Returns the least common multiple of the given integersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.zfcj.math.set.Function
aRb
-
Constructor Details
-
LeastCommonMultiple
public LeastCommonMultiple()
-
-
Method Details
-
apply
Description copied from interface:org.zfcj.math.set.Function
Applies the function to the given input element x and returns its corresponding output element -
calculate
Returns the least common multiple of the given integers- Parameters:
ints
- the integers- Returns:
- the integers' least common mulitple
-
calculate
Returns the least common multiple of the given integers- Parameters:
ints
- the integers- Returns:
- the integers' least common mulitple
-
calculate
Returns the least common multiple of the given longs- Parameters:
longs
- the integers- Returns:
- the integers' least common mulitple
-
calculate
Returns the least common multiple of the given integers- Parameters:
bigs
- the integers- Returns:
- the integers' least common mulitple
-