java.lang.Object
org.zfcj.math.numbers.RealSubtraction
- All Implemented Interfaces:
org.zfcj.math.set.BiFunction<RealNumber,,RealNumber, RealNumber> org.zfcj.math.set.BinaryOperator<RealNumber>
A
BinaryOperator that subtracts one RealNumber from another
and returns their difference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(RealNumber r, RealNumber s) Applies the function to the given input elements t and u and returns the corresponding output elementstatic RealNumbercalculate(RealNumber minuend, RealNumber subtrahend) Calculates the difference of subtracting the givenRealNumbers
-
Constructor Details
-
RealSubtraction
public RealSubtraction()
-
-
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:
r- an element of the first sets- an element of the second set
-
calculate
Calculates the difference of subtracting the givenRealNumbers- Parameters:
minuend- the first numbersubtrahend- the second number- Returns:
- the difference of the given real numbers
-