Class GeneralizedContinuedFraction.Coefficient

java.lang.Object
org.apache.commons.numbers.fraction.GeneralizedContinuedFraction.Coefficient
Enclosing class:
GeneralizedContinuedFraction

public static final class GeneralizedContinuedFraction.Coefficient extends Object
Defines the n-th "a" and "b" coefficients of the continued fraction.
Since:
1.1
  • Method Details

    • getA

      public double getA()
      Returns the n-th "a" coefficient of the continued fraction.
      Returns:
      the coefficient an.
    • getB

      public double getB()
      Returns the n-th "b" coefficient of the continued fraction.
      Returns:
      the coefficient bn.
    • of

      public static GeneralizedContinuedFraction.Coefficient of(double a, double b)
      Create a new coefficient.
      Parameters:
      a - "a" coefficient
      b - "b" coefficient
      Returns:
      the coefficient