public class ImmutableMathUtil extends Object
Operation |
|---|
| Square Root |
| Fractional Exponentiation |
| Natural Exponentiation |
| Natural Log |
| Constructor and Description |
|---|
ImmutableMathUtil() |
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
exp(BigDecimal power)
Raises e to the power of the input big decimal.
|
static BigDecimal |
exp(BigDecimal input,
MathContext context)
Returns e raised to the input power using a Taylor expansion with
|
static BigDecimal |
ln(BigDecimal input)
Calculates the natural logarithm using a Taylor sequqnce.
|
static BigDecimal |
ln(BigDecimal input,
MathContext context)
Calculates the natural logarithm using a Taylor sequqnce.
|
static BigDecimal |
pow(BigDecimal base,
BigDecimal power)
Raises the base to the power and returns the result.
|
static BigDecimal |
pow(BigDecimal base,
BigDecimal power,
MathContext context)
Raises the base to the power and returns the result.
|
static BigDecimal |
sqrt(BigDecimal randicand)
Returns the square root of a BigDecimal.
|
static BigDecimal |
sqrt(BigDecimal randicand,
MathContext context)
Returns the square root of a BigDecimal.
|
static BigInteger |
sqrt(BigInteger randicand)
Returns the square root of a big integer
|
public static BigInteger sqrt(BigInteger randicand)
BigInteger - randicand the input big integer randicandpublic static BigDecimal sqrt(BigDecimal randicand)
BigDecimal - randicand the input BigDecimal randicandpublic static BigDecimal sqrt(BigDecimal randicand, MathContext context)
BigDecimal - randicand the input BigDecimal randicandMathContextcontext - the math contextpublic static BigDecimal pow(BigDecimal base, BigDecimal power)
BigDecimal - base the baseBigDecimal - power the powerpublic static BigDecimal pow(BigDecimal base, BigDecimal power, MathContext context)
BigDecimal - the baseBigDecimal - the powerMathContext - the math contextpublic static BigDecimal ln(BigDecimal input)
BigDecimal - the input big decimal > 0public static BigDecimal ln(BigDecimal input, MathContext context)
BigDecimal - the input big decimal > 0public static BigDecimal exp(BigDecimal power)
BigDecimal - the input powerpublic static BigDecimal exp(BigDecimal input, MathContext context)
BigDecimal - the powerMathContext - the math contextCopyright © 2017. All rights reserved.