Package io.keikaiex.formula.fn
Class MathFunctionImpl
- java.lang.Object
-
- io.keikaiex.formula.fn.MathFunctionImpl
-
public class MathFunctionImpl extends Object
- Author:
- ashish
-
-
Field Summary
Fields Modifier and Type Field Description static Function
FACTDOUBLE
static Function
GCD
static Function
LCM
static Function
MDETERM
static Function
MINVERSE
static Function
MMULT
static Function
MROUND
static Function
MULTINOMIAL
static Function
QUOTIENT
static Function
RANDBETWEEN
static Function
ROMAN
static Function
SQRTPI
-
Constructor Summary
Constructors Constructor Description MathFunctionImpl()
-
-
-
Field Detail
-
FACTDOUBLE
public static final Function FACTDOUBLE
-
GCD
public static final Function GCD
-
LCM
public static final Function LCM
-
MDETERM
public static final Function MDETERM
-
MINVERSE
public static final Function MINVERSE
-
MMULT
public static final Function MMULT
-
MROUND
public static final Function MROUND
-
MULTINOMIAL
public static final Function MULTINOMIAL
-
QUOTIENT
public static final Function QUOTIENT
-
RANDBETWEEN
public static final Function RANDBETWEEN
-
ROMAN
public static final Function ROMAN
-
SQRTPI
public static final Function SQRTPI
-
-
Method Detail
-
gcd
public static int gcd(int m, int n) throws EvaluationException
Returns the greatest common divisor- Parameters:
m
- - number 1n
- - number 2- Returns:
- the greatest common divisor
- Throws:
EvaluationException
-
-