java.lang.Object
org.zfcj.math.numbers.RealExponentiation
- All Implemented Interfaces:
org.zfcj.math.set.BiFunction<RealNumber,
,RealNumber, RealNumber> org.zfcj.math.set.BinaryOperator<RealNumber>
public class RealExponentiation
extends Object
implements org.zfcj.math.set.BinaryOperator<RealNumber>
A
BinaryOperator
that computes the exponentiation of one RealNumber
by another-
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 base, RealNumber exp) Calculates the power of exponentiation of the givenRealNumber
base and exponent
-
Constructor Details
-
RealExponentiation
public RealExponentiation()
-
-
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 power of exponentiation of the givenRealNumber
base and exponent- Parameters:
base
- the baseexp
- the exponent- Returns:
- the power of the given base and exponent
-