Package org.apfloat.samples
Class Pi.AbstractBinarySplittingSeries
java.lang.Object
org.apfloat.samples.Pi.AbstractBinarySplittingSeries
- All Implemented Interfaces:
Serializable
,Pi.BinarySplittingSeries
- Direct Known Subclasses:
Pi.ChudnovskyBinarySplittingSeries
,Pi.RamanujanBinarySplittingSeries
- Enclosing class:
Pi
protected abstract static class Pi.AbstractBinarySplittingSeries
extends Object
implements Pi.BinarySplittingSeries
Abstract base class for the binary splitting series.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractBinarySplittingSeries
(long precision, int radix) Construct a binary splitting series with the specified precision and radix. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apfloat.samples.Pi.BinarySplittingSeries
a, p, q
-
Field Details
-
precision
protected long precisionTarget precision. -
radix
protected int radixRadix to be used.
-
-
Constructor Details
-
AbstractBinarySplittingSeries
protected AbstractBinarySplittingSeries(long precision, int radix) Construct a binary splitting series with the specified precision and radix.- Parameters:
precision
- The target precision.radix
- The radix to be used.
-