public static class PiParallel.ParallelRamanujanPiCalculator extends Pi.RamanujanPiCalculator
Modifier | Constructor and Description |
---|---|
|
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.
|
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
public Apfloat execute()
Pi.RamanujanPiCalculator
execute
in interface Operation<Apfloat>
execute
in class Pi.RamanujanPiCalculator