Package org.apache.hadoop.examples.pi.math


package org.apache.hadoop.examples.pi.math
This package provides useful mathematical library classes for the distbbp program.
  • Class
    Description
    org.apache.hadoop.examples.pi.math.ArithmeticProgression
    An arithmetic progression
    org.apache.hadoop.examples.pi.math.Bellard
    Bellard's BBP-type Pi formula 1/2^6 \sum_{n=0}^\infty (-1)^n/2^{10n} (-2^5/(4n+1) -1/(4n+3) +2^8/(10n+1) -2^6/(10n+3) -2^2/(10n+5) -2^2/(10n+7) +1/(10n+9)) References: [1] David H.
    Parameters for the sums
    org.apache.hadoop.examples.pi.math.Bellard.Sum
    The sums in the Bellard's formula
    org.apache.hadoop.examples.pi.math.Modular
    Modular arithmetics
    org.apache.hadoop.examples.pi.math.Summation
    Represent the summation \sum \frac{2^e \mod n}{n}.