java.lang.Object
org.zfcj.math.numbers.RealAddition
- All Implemented Interfaces:
org.zfcj.math.set.BiFunction<RealNumber,
,RealNumber, RealNumber> org.zfcj.math.set.BinaryOperator<RealNumber>
A
BinaryOperation
that returns the sum of two RealNumber
s-
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 RealNumber
calculate
(RealNumber r, RealNumber s) Calculates the sum of the givenRealNumber
s r and s and returns the result
-
Constructor Details
-
RealAddition
public RealAddition()
-
-
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:
r
- an element of the first sets
- an element of the second set
-
calculate
Calculates the sum of the givenRealNumber
s r and s and returns the result- Parameters:
r
- the first numbers
- the second number- Returns:
- the sum of the given numbers
-