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 RealNumber
calculate
(RealNumber dividend, RealNumber divisor) Calculates the modulo of the givenRealNumber
s
-
Constructor Details
-
RealModulo
public RealModulo()
-
-
Method Details
-
apply
Description copied from interface:org.zfcj.math.set.BiFunction
Applies the function to the given input elements t and u and returns the corresponding output element- Specified by:
apply
in 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 givenRealNumber
s- Parameters:
dividend
- the dividenddivisor
- the divisor- Returns:
- the remainder of dividing the dividend by the divisor
-