public class SpecialFunctions
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static int |
ceilLd(int x) |
Returns the smallest (closest to negative infinity) value that is greater than or equal to the dual (base
2) logarithm of the given number. |
static long |
ceilLd(long x) |
Returns the smallest (closest to negative infinity) value that is greater than or equal to the dual (base
2) logarithm of the given number. |
static java.math.BigDecimal |
exp(java.math.BigDecimal x,
int scale) |
Returns the Euler's number e raised to the power of the given number.
|
static int |
floorLd(int x) |
Returns the largest (closest to positive infinity) value that is smaller than or equal to the dual (base
2) logarithm of the given number. |
static long |
floorLd(long x) |
Returns the largest (closest to positive infinity) value that is smaller than or equal to the dual (base
2) logarithm of the given number. |
static double |
ld(double x) |
Returns the dual (base
2) logarithm of the given number. |
static double |
ln(double x) |
Returns the natural (base
e) logarithm of the given number. |
static java.math.BigDecimal |
ln(java.math.BigDecimal x,
int scale) |
Returns the natural (base
e) logarithm of the given number. |
public static int ceilLd(int x)
2) logarithm of the given number.java.lang.IllegalArgumentException - if x is not positivepublic static long ceilLd(long x)
2) logarithm of the given number.java.lang.IllegalArgumentException - if x is not positivepublic static java.math.BigDecimal exp(java.math.BigDecimal x,
int scale)
java.lang.ArithmeticException - if x is > Long.MAX_VALUEjava.lang.IllegalArgumentException - if x is nullpublic static int floorLd(int x)
2) logarithm of the given number.java.lang.IllegalArgumentException - if x is not positivepublic static long floorLd(long x)
2) logarithm of the given number.java.lang.IllegalArgumentException - if x is not positivepublic static double ld(double x)
2) logarithm of the given number.java.lang.IllegalArgumentException - if x is not finitepublic static java.math.BigDecimal ln(java.math.BigDecimal x,
int scale)
e) logarithm of the given number.java.lang.ArithmeticException - if x is ≤ 0java.lang.IllegalArgumentException - if x is nullpublic static double ln(double x)
e) logarithm of the given number.java.lang.IllegalArgumentException - if x is not finite