|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.arith.Roots
public class Roots
Root computation algorithms. Roots for BigInteger and BigDecimals.
Constructor Summary | |
---|---|
Roots()
|
Method Summary | |
---|---|
static BigDecimal |
root(BigDecimal A,
int n)
N-th root. |
static BigInteger |
root(BigInteger A,
int n)
Integer n-th root. |
static BigDecimal |
sqrt(BigDecimal A)
Square root. |
static BigInteger |
sqrt(BigInteger A)
Integer square root. |
static BigInteger |
sqrtInt(BigInteger A)
Integer square root. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Roots()
Method Detail |
---|
public static BigInteger root(BigInteger A, int n)
A
- big integer.n
- long.
public static BigInteger sqrt(BigInteger A)
A
- big integer.
public static BigInteger sqrtInt(BigInteger A)
A
- big integer.
public static BigDecimal sqrt(BigDecimal A)
A
- big decimal.
public static BigDecimal root(BigDecimal A, int n)
A
- big decimal.n
- long.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |