java.lang.Object
org.zfcj.math.numbers.RealModulo
- All Implemented Interfaces:
org.zfcj.math.set.BiFunction<RealNumber,,RealNumber, RealNumber> org.zfcj.math.set.BinaryOperator<RealNumber>
A
BinaryOperator that computes the modulo of one RealNumber
by another-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(RealNumber t, RealNumber u) Applies the function to the given input elements t and u and returns the corresponding output elementstatic RealNumbercalculate(RealNumber dividend, RealNumber divisor) Calculates the modulo of the givenRealNumbers
-
Constructor Details
-
RealModulo
public RealModulo()
-
-
Method Details
-
apply
Description copied from interface:org.zfcj.math.set.BiFunctionApplies the function to the given input elements t and u and returns the corresponding output element- Specified by:
applyin interfaceorg.zfcj.math.set.BiFunction<RealNumber,RealNumber, RealNumber> - Parameters:
t- an element of the first setu- an element of the second set
-
calculate
Calculates the modulo of the givenRealNumbers- Parameters:
dividend- the dividenddivisor- the divisor- Returns:
- the remainder of dividing the dividend by the divisor
-