public static class PiParallel.ParallelChudnovskyPiCalculator extends Pi.ChudnovskyPiCalculator
Modifier | Constructor and Description |
---|---|
|
ParallelChudnovskyPiCalculator(long precision,
int radix)
Construct a pi calculator with the specified precision and radix.
|
protected |
ParallelChudnovskyPiCalculator(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 Chudnovskys' binary splitting algorithm.
|
public ParallelChudnovskyPiCalculator(long precision, int radix) throws ApfloatRuntimeException
precision
- The target precision.radix
- The radix to be used.ApfloatRuntimeException
protected ParallelChudnovskyPiCalculator(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.ChudnovskyPiCalculator
execute
in interface Operation<Apfloat>
execute
in class Pi.ChudnovskyPiCalculator
Copyright © 2019. All rights reserved.