Class GeneralizedContinuedFraction.Coefficient

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double a
      "a" coefficient.
      private double b
      "b" coefficient.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Coefficient​(double a, double b)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getA()
      Returns the n-th "a" coefficient of the continued fraction.
      double getB()
      Returns the n-th "b" coefficient of the continued fraction.
      static GeneralizedContinuedFraction.Coefficient of​(double a, double b)
      Create a new coefficient.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • a

        private final double a
        "a" coefficient.
      • b

        private final double b
        "b" coefficient.
    • Constructor Detail

      • Coefficient

        private Coefficient​(double a,
                            double b)
        Parameters:
        a - "a" coefficient
        b - "b" coefficient
    • Method Detail

      • 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.