|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(PiParallel.ParallelBinarySplittingPiCalculator calculator,
long precision,
int radix)
Construct a pi calculator with the specified parallel binary splitting algorithm. |
Method Summary | |
---|---|
Apfloat |
execute()
Calculate pi using the Ramanujan's 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(PiParallel.ParallelBinarySplittingPiCalculator 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()
execute
in interface Operation<Apfloat>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |