Package hydra.lib.math
Class Atanh
- java.lang.Object
-
- hydra.tools.PrimitiveFunction
-
- hydra.lib.math.Atanh
-
public class Atanh extends PrimitiveFunction
Computes the inverse hyperbolic tangent.
-
-
Constructor Summary
Constructors Constructor Description Atanh()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Doubleapply(java.lang.Double x)Computes the inverse hyperbolic tangent.protected java.util.function.Function<java.util.List<Term>,java.util.function.Function<Context,java.util.function.Function<Graph,Either<InContext<Error_>,Term>>>>implementation()Provides the implementation of this function.Namename()Gets the name of this primitive function.TypeSchemetype()Gets the type scheme for this function.-
Methods inherited from class hydra.tools.PrimitiveFunction
term, toNative
-
-
-
-
Method Detail
-
name
public Name name()
Gets the name of this primitive function.- Specified by:
namein classPrimitiveFunction- Returns:
- the function name
-
type
public TypeScheme type()
Gets the type scheme for this function.- Specified by:
typein classPrimitiveFunction- Returns:
- the type scheme
-
implementation
protected java.util.function.Function<java.util.List<Term>,java.util.function.Function<Context,java.util.function.Function<Graph,Either<InContext<Error_>,Term>>>> implementation()
Provides the implementation of this function.- Specified by:
implementationin classPrimitiveFunction- Returns:
- a function that maps terms to a flow of terms
-
apply
public static java.lang.Double apply(java.lang.Double x)
Computes the inverse hyperbolic tangent.- Parameters:
x- the value- Returns:
- the inverse hyperbolic tangent
-
-