|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--Functions
|
+--DecimalFunctions
| Fields inherited from class Functions |
acc,
accuracy,
Eight,
epsilon,
Five,
Four,
Half,
m1,
m2,
m3,
m4,
m5,
m6,
m7,
m8,
mm2,
mm4,
mm6,
mm8,
Nine,
One,
Six,
Three,
Twentyfour,
Two,
Zero |
| Constructor Summary | |
DecimalFunctions()
|
|
| Method Summary | |
(package private) static BigDecimal |
arctanh(BigDecimal x)
|
(package private) static boolean |
badArgument(BigDecimal q)
A method used to detect that a BigDecimal argument q is bigger than MAX_INTEGER or that it is not non-negative integer. |
(package private) static BigDecimal |
Binomial(BigDecimal n,
BigDecimal k)
Calculates the binomial coefficient nCk, and expresses the result as a BigDecimal. |
private static BigInteger |
Ceiling_i(BigDecimal n)
|
(package private) static BigDecimal |
ceiling(BigDecimal n)
|
(package private) static BigDecimal |
cos(BigDecimal x)
Calculates cos(x). |
(package private) static BigDecimal |
cosRestricted(BigDecimal x)
Calculates cos(x). |
(package private) static BigDecimal |
exp(BigDecimal x)
|
private static BigDecimal |
expRestricted(BigDecimal x)
Calculates exponential, but is supposed to be called only for 0 |
(package private) static BigDecimal |
factorial(BigDecimal n)
|
(package private) static BigDecimal |
fibonacci(BigDecimal q)
|
private static BigInteger |
floor_i(BigDecimal n)
|
(package private) static BigDecimal |
floor(BigDecimal n)
|
(package private) static BigDecimal |
harmonics(BigDecimal n)
|
(package private) static BigDecimal |
isPrime(BigDecimal n)
|
(package private) static BigDecimal |
ln(BigDecimal x)
Calculates the natural logarithm of a number. |
private static BigDecimal |
ln2()
Calculates the natural logarithm of 2 in a very fast way. |
private static BigDecimal |
lnFast(BigDecimal x)
Calculates the function ln((1+x)/(1-x)). |
(package private) static BigDecimal |
lnFast251()
|
(package private) static BigDecimal |
lnFast449()
|
(package private) static BigDecimal |
lnFast4801()
|
(package private) static BigDecimal |
lnFast8749()
|
static void |
main(String[] args)
|
(package private) static BigDecimal |
mdx(BigDecimal m,
BigDecimal x)
|
(package private) static BigDecimal |
mod(BigDecimal n,
BigDecimal m)
|
(package private) static BigDecimal |
pi()
|
(package private) static BigDecimal |
pow(BigDecimal n,
BigDecimal p)
Calculates n^p. |
(package private) static BigDecimal |
pow(BigDecimal x,
int n)
Calculates x^n, when n is an int. |
(package private) static BigDecimal |
powSmall(BigDecimal x,
BigDecimal alpha)
Calculates (1+x)^alpha. |
(package private) static BigDecimal |
sin(BigDecimal x)
Calculates sin(x). |
(package private) static BigDecimal |
sqrt(BigDecimal x)
Returns the square root of x, when x is a non-negative real number. |
(package private) static BigDecimal |
sqrt2(BigDecimal x)
Calculates the square root of x. |
(package private) static BigDecimal |
tan(BigDecimal x)
Calculates tan(x). |
| Methods inherited from class Functions |
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
| Constructor Detail |
public DecimalFunctions()
| Method Detail |
static boolean badArgument(BigDecimal q)
throws VeryLongComputationException,
WrongArgumentException
static BigDecimal factorial(BigDecimal n)
throws VeryLongComputationException,
WrongArgumentException
n - BigDecimal.
static BigDecimal mod(BigDecimal n,
BigDecimal m)
throws WrongArgumentException
n - Integer represented as BigDecimalm - Integer represented as as BigDecimal
static BigDecimal harmonics(BigDecimal n)
throws VeryLongComputationException,
WrongArgumentException
static BigDecimal sqrt(BigDecimal x)
throws ImaginaryNumberException
static BigDecimal sqrt2(BigDecimal x)
sqrt(String x)static BigDecimal cosRestricted(BigDecimal x)
BigDecimal - xstatic BigDecimal cos(BigDecimal x)
BigDecimal - xstatic BigDecimal sin(BigDecimal x)
BigDecimal - x
static BigDecimal tan(BigDecimal x)
throws InfinityException
BigDecimal - x
static BigDecimal fibonacci(BigDecimal q)
throws VeryLongComputationException,
WrongArgumentException
BigDecimal - q.static BigDecimal floor(BigDecimal n)
static BigDecimal ceiling(BigDecimal n)
BigDecimal - n.private static BigInteger floor_i(BigDecimal n)
BigDecimal - n.private static BigInteger Ceiling_i(BigDecimal n)
BigDecimal - n.
static BigDecimal Binomial(BigDecimal n,
BigDecimal k)
throws WrongArgumentException
static BigDecimal isPrime(BigDecimal n)
static BigDecimal pi()
static BigDecimal pow(BigDecimal n,
BigDecimal p)
throws VeryLongComputationException
BigDecimal - n.BigDecimal - alpha which corresponds to the exponent.
static BigDecimal powSmall(BigDecimal x,
BigDecimal alpha)
BigDecimal - x.BigDecimal - alpha which corresponds to the exponent.private static BigDecimal expRestricted(BigDecimal x)
static BigDecimal pow(BigDecimal x,
int n)
BigDecimal - x.int - n which corresponds to the exponent.static BigDecimal exp(BigDecimal x)
private static BigDecimal lnFast(BigDecimal x)
static BigDecimal lnFast251()
static BigDecimal lnFast449()
static BigDecimal lnFast4801()
static BigDecimal lnFast8749()
static BigDecimal arctanh(BigDecimal x)
static BigDecimal ln(BigDecimal x)
throws ImaginaryNumberException,
InfinityException
static BigDecimal mdx(BigDecimal m,
BigDecimal x)
private static BigDecimal ln2()
public static void main(String[] args)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||