Interface ContinuedFraction.Partials

  • Enclosing class:
    ContinuedFraction

    public static interface ContinuedFraction.Partials
    This interface defines a continued fraction in terms of the partial numerators an, and the partial denominators bn. \[ z = b_0 + \cfrac{a_1}{b_1 + \cfrac{a_2}{b_2 + \cfrac{a_3}{b_3 + \cfrac{a_4}{b_4 + \ddots\,}}}} \]
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double A​(int n, double x)
      Compute an.
      double B​(int n, double x)
      Compute bn.
    • Method Detail

      • A

        double A​(int n,
                 double x)
        Compute an.
        Parameters:
        n - an index that counts from 1
        x - x
        Returns:
        an
      • B

        double B​(int n,
                 double x)
        Compute bn.
        Parameters:
        n - an index that counts from 0
        x - x
        Returns:
        bn