Package org.apfloat.samples
Class Pi.BorweinPiCalculator
java.lang.Object
org.apfloat.samples.Pi.BorweinPiCalculator
- All Implemented Interfaces:
Serializable
,Operation<Apfloat>
- Enclosing class:
- Pi
Calculates pi using the Borweins' quartic algorithm.
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionBorweinPiCalculator(long precision, int radix)
Construct a pi calculator with the specified precision and radix. -
Method Summary
-
Constructor Details
-
BorweinPiCalculator
public BorweinPiCalculator(long precision, int radix)Construct a pi calculator with the specified precision and radix.- Parameters:
precision
- The target precision.radix
- The radix to be used.
-
-
Method Details