public final class Bellard
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Bellard.Parameter |
Parameters for the sums
|
static class |
Bellard.Sum |
The sums in the Bellard's formula
|
| Constructor | Description |
|---|---|
Bellard() |
| Modifier and Type | Method | Description |
|---|---|---|
static long |
bit2terms(long b) |
Estimate the number of terms.
|
static double |
computePi(long b) |
Compute bits of Pi in the local machine.
|
static <T extends Container<Summation>> |
computePi(long b,
java.util.Map<Bellard.Parameter,T> results) |
Compute bits of Pi from the results.
|
static <T extends Container<Summation>> |
getSums(long b,
int partsPerSum,
java.util.Map<Bellard.Parameter,java.util.List<T>> existing) |
Get the sums for the Bellard formula.
|
static void |
main(java.lang.String[] args) |
main
|
public static <T extends Container<Summation>> java.util.Map<Bellard.Parameter,Bellard.Sum> getSums(long b, int partsPerSum, java.util.Map<Bellard.Parameter,java.util.List<T>> existing)
public static <T extends Container<Summation>> double computePi(long b, java.util.Map<Bellard.Parameter,T> results)
public static double computePi(long b)
public static long bit2terms(long b)
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.