# Class PiDistributed.DistributedRamanujanPiCalculator

java.lang.Object
org.apfloat.samples.Pi.RamanujanPiCalculator
org.apfloat.samples.PiParallel.ParallelRamanujanPiCalculator
org.apfloat.samples.PiDistributed.DistributedRamanujanPiCalculator

All Implemented Interfaces:
  `Serializable, Operation<Apfloat>`

Enclosing class:
  `PiDistributed`

public static class PiDistributed.DistributedRamanujanPiCalculator extends PiParallel.ParallelRamanujanPiCalculator
Class for calculating pi using the distributed Ramanujan's binary splitting algorithm.

Version:
  1.9.0
Author:
  Mikko Tommila
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DistributedRamanujanPiCalculator(long precision, int radix)`
  Construct a pi calculator with the specified precision and radix.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Apfloat`
  `execute()`
  Calculate pi using the Ramanujan binary splitting algorithm.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DistributedRamanujanPiCalculator

    public DistributedRamanujanPiCalculator(long precision, int radix) throws ApfloatRuntimeException
    Construct a pi calculator with the specified precision and radix.
    Parameters:
      `precision` - The target precision.
      `radix` - The radix to be used.
    Throws:
      `ApfloatRuntimeException`

- ## Method Details

  - ### execute

    public Apfloat execute()
    Description copied from class: `Pi.RamanujanPiCalculator`
    Calculate pi using the Ramanujan binary splitting algorithm.
    Specified by:
      `execute` in interface `Operation<Apfloat>`
    Overrides:
      `execute` in class `PiParallel.ParallelRamanujanPiCalculator`
    Returns:
      Return value of the operation.