org.apfloat.samples
Class Pi.AbstractBinarySplittingSeries

java.lang.Object
  extended by 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.
 
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 Detail

precision

protected long precision
Target precision.


radix

protected int radix
Radix to be used.

Constructor Detail

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.