public static class PiDistributed.DistributedRamanujanPiCalculator extends PiParallel.ParallelRamanujanPiCalculator
| Constructor and Description |
|---|
DistributedRamanujanPiCalculator(long precision,
int radix)
Construct a pi calculator with the specified precision and radix.
|
| Modifier and Type | Method and Description |
|---|---|
Apfloat |
execute()
Calculate pi using the Ramanujan binary splitting algorithm.
|
public DistributedRamanujanPiCalculator(long precision,
int radix)
throws ApfloatRuntimeException
precision - The target precision.radix - The radix to be used.ApfloatRuntimeExceptionpublic Apfloat execute()
Pi.RamanujanPiCalculatorexecute in interface Operation<Apfloat>execute in class PiParallel.ParallelRamanujanPiCalculatorCopyright © 2025. All rights reserved.