Package org.apfloat.samples
Class PiDistributed.DistributedChudnovskyPiCalculator
java.lang.Object
org.apfloat.samples.Pi.ChudnovskyPiCalculator
org.apfloat.samples.PiParallel.ParallelChudnovskyPiCalculator
org.apfloat.samples.PiDistributed.DistributedChudnovskyPiCalculator
- All Implemented Interfaces:
Serializable
,Operation<Apfloat>
- Enclosing class:
PiDistributed
public static class PiDistributed.DistributedChudnovskyPiCalculator
extends PiParallel.ParallelChudnovskyPiCalculator
Class for calculating pi using the distributed Chudnovskys' binary splitting algorithm.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDistributedChudnovskyPiCalculator
(long precision, int radix) Construct a pi calculator with the specified precision and radix. -
Method Summary
-
Constructor Details
-
DistributedChudnovskyPiCalculator
Construct a pi calculator with the specified precision and radix.- Parameters:
precision
- The target precision.radix
- The radix to be used.- Throws:
ApfloatRuntimeException
-
-
Method Details
-
execute
Description copied from class:Pi.ChudnovskyPiCalculator
Calculate pi using the Chudnovskys' binary splitting algorithm.- Specified by:
execute
in interfaceOperation<Apfloat>
- Overrides:
execute
in classPiParallel.ParallelChudnovskyPiCalculator
- Returns:
- Return value of the operation.
-