| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | Calculus.
Pi calculation with Machin's formula. |
| Modifier and Type | Field and Description |
|---|---|
| private static NumberSystem | |
| public static final MathContext | DEFAULT_MATH_CONTEXT
The default MathContext used for BigDecimal calculus. |
| private static final String | |
| private static final java. | |
| public static MathContext | MATH_CONTEXT
Exposes (non-final) the MathContext used for BigDecimal calculus. |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static NumberSystem | |
| public static List | |
| public static Map | |
| public static NumberSystem | getNumberSystem(String name)
Returns the given |
| public static void | setCurrentNumberSystem(NumberSystem
the new current number system. system)Sets the current number system |
| currentSystem | back to summary |
|---|---|
| private static NumberSystem currentSystem | |
| DEFAULT_MATH_CONTEXT | back to summary |
|---|---|
| public static final MathContext DEFAULT_MATH_CONTEXT The default MathContext used for BigDecimal calculus. | |
| DEFAULT_NUMBER_SYSTEM | back to summary |
|---|---|
| private static final String DEFAULT_NUMBER_SYSTEM | |
| log | back to summary |
|---|---|
| private static final java. | |
| MATH_CONTEXT | back to summary |
|---|---|
| public static MathContext MATH_CONTEXT Exposes (non-final) the MathContext used for BigDecimal calculus. | |
| normalFormOrder | back to summary |
|---|---|
| private static final Map<Class<? extends AbstractConverter>, Integer> normalFormOrder | |
| Calculus | back to summary |
|---|---|
| public Calculus() | |
| currentNumberSystem | back to summary |
|---|---|
| public static NumberSystem currentNumberSystem() Returns the current | |
| getAvailableNumberSystems | back to summary |
|---|---|
| public static List All available | |
| getNormalFormOrder | back to summary |
|---|---|
| public static Map | |
| getNumberSystem | back to summary |
|---|---|
| public static NumberSystem getNumberSystem(String name) Returns the given | |
| setCurrentNumberSystem | back to summary |
|---|---|
| public static void setCurrentNumberSystem(NumberSystem system) Sets the current number system
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final BigDecimal | |
| private static final BigDecimal | |
| private static final Map | piCache
Memoization of Pi by number-of-digits,
as used by |
| private static final BigDecimal | |
| private static final BigDecimal | |
| private static final BigDecimal |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static BigDecimal | |
| private static BigDecimal | |
| public static BigDecimal |
| FIVE | back to summary |
|---|---|
| private static final BigDecimal FIVE | |
| FOUR | back to summary |
|---|---|
| private static final BigDecimal FOUR | |
| piCache | back to summary |
|---|---|
| private static final Map<Integer, BigDecimal> piCache Memoization of Pi by number-of-digits,
as used by | |
| THREE | back to summary |
|---|---|
| private static final BigDecimal THREE | |
| TWO | back to summary |
|---|---|
| private static final BigDecimal TWO | |
| TWO_HUNDRED_THIRTY_NINE | back to summary |
|---|---|
| private static final BigDecimal TWO_HUNDRED_THIRTY_NINE | |
| Pi | back to summary |
|---|---|
| private Pi() | |
| arccot | back to summary |
|---|---|
| private static BigDecimal arccot(BigDecimal x, int numDigits) Compute arccot via the Taylor series expansion. | |
| calculatePi | back to summary |
|---|---|
| private static BigDecimal calculatePi(int numDigits) Calculates Pi up to numDigits. | |
| ofNumDigits | back to summary |
|---|---|
| public static BigDecimal ofNumDigits(int numDigits) | |