org.statcato.calculator
Class MathFunctions
- java.lang.Object
-
- org.statcato.calculator.MathFunctions
-
public class MathFunctions extends java.lang.ObjectDefines functions used in the calculator.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field and Description static intABSstatic intACOSstatic intASINstatic intATANstatic intCEILstatic intCOSstatic intEXPstatic intFACTORIALstatic intFLOORstatic java.lang.String[]FUNNAMESstatic intLNstatic intLOGstatic doublePIstatic intROUNDstatic intSINstatic intSQRTstatic intTANstatic doubleUNDEFINED
-
Constructor Summary
Constructors Constructor and Description MathFunctions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetFunctionNumber(java.lang.String s)Returns the function number corresponding to the given function name.static java.lang.String[]getSortedFunNames()Returns the array of sorted function name.
-
-
-
Field Detail
-
SIN
public static final int SIN
- See Also:
- Constant Field Values
-
COS
public static final int COS
- See Also:
- Constant Field Values
-
EXP
public static final int EXP
- See Also:
- Constant Field Values
-
ABS
public static final int ABS
- See Also:
- Constant Field Values
-
TAN
public static final int TAN
- See Also:
- Constant Field Values
-
ACOS
public static final int ACOS
- See Also:
- Constant Field Values
-
ASIN
public static final int ASIN
- See Also:
- Constant Field Values
-
ATAN
public static final int ATAN
- See Also:
- Constant Field Values
-
CEIL
public static final int CEIL
- See Also:
- Constant Field Values
-
FLOOR
public static final int FLOOR
- See Also:
- Constant Field Values
-
LOG
public static final int LOG
- See Also:
- Constant Field Values
-
ROUND
public static final int ROUND
- See Also:
- Constant Field Values
-
SQRT
public static final int SQRT
- See Also:
- Constant Field Values
-
LN
public static final int LN
- See Also:
- Constant Field Values
-
FACTORIAL
public static final int FACTORIAL
- See Also:
- Constant Field Values
-
PI
public static final double PI
- See Also:
- Constant Field Values
-
UNDEFINED
public static final double UNDEFINED
- See Also:
- Constant Field Values
-
FUNNAMES
public static final java.lang.String[] FUNNAMES
-
-
Method Detail
-
getFunctionNumber
public int getFunctionNumber(java.lang.String s)
Returns the function number corresponding to the given function name.- Parameters:
s- function name- Returns:
- function number
-
getSortedFunNames
public static java.lang.String[] getSortedFunNames()
Returns the array of sorted function name.- Returns:
- array of sorted function name
-
-
DMelt 3.0 © DataMelt by jWork.ORG