public final class MathExtension extends Object
Constructor and Description |
---|
MathExtension() |
Modifier and Type | Method and Description |
---|---|
static double |
log2(double a)
2-base logarithm of a
|
static int |
log2Integer(double a)
2-base logarithm of a, but the result doesn't have decimals (approximated to the integer number most near by below)
|
static double |
logX(double x_base,
double a)
X-base logarithm of a
|
static int |
logXInteger(double x_base,
double a)
X-base logarithm of a, but the result doesn't have decimals (approximated to the integer number most near by below)
|
public static double log2(double a)
a
- The value to do the calculationspublic static int log2Integer(double a)
a
- The value to do the calculationspublic static double logX(double x_base, double a)
a
- The value to do the calculationspublic static int logXInteger(double x_base, double a)
a
- The value to do the calculations