Package net.objecthunter.exp4j.function
Class Functions
- java.lang.Object
-
- net.objecthunter.exp4j.function.Functions
-
public final class Functions extends java.lang.Object
Class representing the builtin functions available for use in expressions
-
-
Field Summary
Fields Modifier and Type Field Description static Function
ABS
Wrapper forMath.abs(double)
.static Function
ACOS
Wrapper forMath.acos(double)
.static Function
ASIN
Wrapper forMath.asin(double)
.static Function
ATAN
Wrapper forMath.atan(double)
.static Function
CBRT
Wrapper forMath.cbrt(double)
.static Function
CEIL
Wrapper forMath.ceil(double)
.static Function
COS
Wrapper forMath.cos(double)
.static Function
COSH
Wrapper forMath.cosh(double)
.static Function
E
Wrapper forMath.E
.static Function
EXP
Wrapper forMath.exp(double)
.static Function
EXPM1
Wrapper forMath.expm1(double)
.static Function
FLOOR
Wrapper forMath.floor(double)
.static Function
LOG
Wrapper forMath.log(double)
.static Function
LOG10
Wrapper forMath.log10(double)
.static Function
LOG1P
Wrapper forMath.log1p(double)
.static Function
LOG2
Base 2 Logarithmstatic Function
PI
Wrapper forMath.PI
.static Function
POW
Wrapper forMath.pow(double, double)
.static Function
SGN
Wrapper forMath.signum(double)
.static Function
SIN
Wrapper forMath.sin(double)
.static Function
SINH
Wrapper forMath.sinh(double)
.static Function
SQRT
Wrapper forMath.sqrt(double)
.static Function
TAN
Wrapper forMath.tan(double)
.static Function
TANH
Wrapper forMath.tanh(double)
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Function
getBuiltinFunction(java.lang.String name)
Get the builtin function for a given name.static Function[]
getFunctions()
Array with all the available functions
-
-
-
Field Detail
-
SIN
public static final Function SIN
Wrapper forMath.sin(double)
.
-
COS
public static final Function COS
Wrapper forMath.cos(double)
.
-
TAN
public static final Function TAN
Wrapper forMath.tan(double)
.
-
LOG
public static final Function LOG
Wrapper forMath.log(double)
.
-
LOG1P
public static final Function LOG1P
Wrapper forMath.log1p(double)
.
-
LOG10
public static final Function LOG10
Wrapper forMath.log10(double)
.
-
LOG2
public static final Function LOG2
Base 2 Logarithm
-
ABS
public static final Function ABS
Wrapper forMath.abs(double)
.
-
ACOS
public static final Function ACOS
Wrapper forMath.acos(double)
.
-
ASIN
public static final Function ASIN
Wrapper forMath.asin(double)
.
-
ATAN
public static final Function ATAN
Wrapper forMath.atan(double)
.
-
CBRT
public static final Function CBRT
Wrapper forMath.cbrt(double)
.
-
CEIL
public static final Function CEIL
Wrapper forMath.ceil(double)
.
-
FLOOR
public static final Function FLOOR
Wrapper forMath.floor(double)
.
-
SINH
public static final Function SINH
Wrapper forMath.sinh(double)
.
-
SQRT
public static final Function SQRT
Wrapper forMath.sqrt(double)
.
-
TANH
public static final Function TANH
Wrapper forMath.tanh(double)
.
-
COSH
public static final Function COSH
Wrapper forMath.cosh(double)
.
-
POW
public static final Function POW
Wrapper forMath.pow(double, double)
.
-
EXP
public static final Function EXP
Wrapper forMath.exp(double)
.
-
EXPM1
public static final Function EXPM1
Wrapper forMath.expm1(double)
.
-
SGN
public static final Function SGN
Wrapper forMath.signum(double)
.
-
PI
public static final Function PI
Wrapper forMath.PI
.
-
E
public static final Function E
Wrapper forMath.E
.
-
-