Class ContinuedFraction

    • Field Detail

      • x

        protected double x
        Fraction's argument.
      • factors

        protected double[] factors
        Fraction's next factors.
    • Constructor Detail

      • ContinuedFraction

        public ContinuedFraction()
    • Method Detail

      • computeFactorsAt

        protected abstract void computeFactorsAt​(int n)
        Compute the pair numerator/denominator for iteration n.
        Parameters:
        n - int
      • getResult

        public double getResult()
        Returns:
        double
      • initialValue

        protected abstract double initialValue()
        Returns:
        double
      • setArgument

        public void setArgument​(double r)
        Parameters:
        r - double the value of the series argument.