Package hydra.lib.math
Class Pow
java.lang.Object
hydra.tools.PrimitiveFunction
hydra.lib.math.Pow
Raises a number to a power.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hydra.tools.PrimitiveFunction
term, toNative
-
Constructor Details
-
Pow
public Pow()
-
-
Method Details
-
name
Gets the name of this primitive function.- Specified by:
namein classPrimitiveFunction- Returns:
- the function name
-
type
Gets the type scheme for this function.- Specified by:
typein classPrimitiveFunction- Returns:
- the type scheme
-
implementation
Provides the implementation of this function.- Specified by:
implementationin classPrimitiveFunction- Returns:
- a function that maps terms to a flow of terms
-
apply
Computes base^exponent.- Parameters:
x- the base- Returns:
- the result
-
apply
Computes base^exponent.- Parameters:
x- the basey- the exponent- Returns:
- the result
-