public static class Pi.RamanujanPiCalculator extends Object implements Operation<Apfloat>
Modifier | Constructor and Description |
---|---|
|
RamanujanPiCalculator(long precision,
int radix)
Construct a pi calculator with the specified precision and radix.
|
protected |
RamanujanPiCalculator(Pi.BinarySplittingPiCalculator calculator,
long precision,
int radix)
Construct a pi calculator with the specified binary splitting algorithm.
|
Modifier and Type | Method and Description |
---|---|
Apfloat |
execute()
Calculate pi using the Ramanujan binary splitting algorithm.
|
public RamanujanPiCalculator(long precision, int radix) throws ApfloatRuntimeException
precision
- The target precision.radix
- The radix to be used.ApfloatRuntimeException
protected RamanujanPiCalculator(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
Copyright © 2018. All rights reserved.