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:
- Serialized Form
Field Summary |
protected long |
precision
Target precision. |
protected int |
radix
Radix to be used. |
Constructor Summary |
protected |
Pi.AbstractBinarySplittingSeries(long precision,
int radix)
Construct a binary splitting series with the specified precision and radix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
precision
protected long precision
- Target precision.
radix
protected int radix
- Radix to be used.
Pi.AbstractBinarySplittingSeries
protected Pi.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.