public static class PiDistributed.DistributedChudnovskyPiCalculator extends PiParallel.ParallelChudnovskyPiCalculator
| Constructor and Description |
|---|
DistributedChudnovskyPiCalculator(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 Chudnovskys' binary splitting algorithm.
|
public DistributedChudnovskyPiCalculator(long precision,
int radix)
throws ApfloatRuntimeException
precision - The target precision.radix - The radix to be used.ApfloatRuntimeExceptionpublic Apfloat execute()
Pi.ChudnovskyPiCalculatorexecute in interface Operation<Apfloat>execute in class PiParallel.ParallelChudnovskyPiCalculatorCopyright © 2024. All rights reserved.