public final class Bellard extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Bellard.Parameter
Parameters for the sums
|
static class |
Bellard.Sum
The sums in the Bellard's formula
|
Constructor and Description |
---|
Bellard() |
Modifier and Type | Method and 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,
Map<Bellard.Parameter,T> results)
Compute bits of Pi from the results.
|
static <T extends Container<Summation>> |
getSums(long b,
int partsPerSum,
Map<Bellard.Parameter,List<T>> existing)
Get the sums for the Bellard formula.
|
static void |
main(String[] args)
main
|
public static <T extends Container<Summation>> Map<Bellard.Parameter,Bellard.Sum> getSums(long b, int partsPerSum, Map<Bellard.Parameter,List<T>> existing)
public static <T extends Container<Summation>> double computePi(long b, Map<Bellard.Parameter,T> results)
public static double computePi(long b)
public static long bit2terms(long b)
public static void main(String[] args) throws IOException
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.