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 Integers-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApplies the function to the given input element x and returns its corresponding output elementstatic Integercalculate(int... ints) Returns the least common multiple of the given integersstatic Integercalculate(long... longs) Returns the least common multiple of the given longsstatic Integercalculate(BigInteger... bigs) Returns the least common multiple of the given integersstatic IntegerReturns the least common multiple of the given integersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.FunctionApplies 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
-