|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apfloat.samples.Pi.RamanujanPiCalculator
org.apfloat.samples.PiParallel.ParallelRamanujanPiCalculator
public static class PiParallel.ParallelRamanujanPiCalculator
Class for calculating pi using the parallel Ramanujan's binary splitting algorithm.
Constructor Summary | |
---|---|
|
PiParallel.ParallelRamanujanPiCalculator(long precision,
int radix)
Construct a pi calculator with the specified precision and radix. |
protected |
PiParallel.ParallelRamanujanPiCalculator(Pi.BinarySplittingPiCalculator calculator,
long precision,
int radix)
Construct a pi calculator with the specified binary splitting algorithm. |
Method Summary | |
---|---|
Apfloat |
execute()
Calculate pi using the Ramanujan binary splitting algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PiParallel.ParallelRamanujanPiCalculator(long precision, int radix) throws ApfloatRuntimeException
precision
- The target precision.radix
- The radix to be used.
ApfloatRuntimeException
protected PiParallel.ParallelRamanujanPiCalculator(Pi.BinarySplittingPiCalculator calculator, long precision, int radix) throws ApfloatRuntimeException
calculator
- The binary splitting algorithm to be used.precision
- The target precision.radix
- The radix to be used.
ApfloatRuntimeException
Method Detail |
---|
public Apfloat execute()
Pi.RamanujanPiCalculator
execute
in interface Operation<Apfloat>
execute
in class Pi.RamanujanPiCalculator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |