Class GeneralizedContinuedFraction.Coefficient
java.lang.Object
org.apache.commons.numbers.fraction.GeneralizedContinuedFraction.Coefficient
- Enclosing class:
GeneralizedContinuedFraction
Defines the
n
-th "a" and "b" coefficients of the continued fraction.- Since:
- 1.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
a
private final double a"a" coefficient. -
b
private final double b"b" coefficient.
-
-
Constructor Details
-
Coefficient
private Coefficient(double a, double b) - Parameters:
a
- "a" coefficientb
- "b" coefficient
-
-
Method Details
-
getA
public double getA()Returns then
-th "a" coefficient of the continued fraction.- Returns:
- the coefficient
an
.
-
getB
public double getB()Returns then
-th "b" coefficient of the continued fraction.- Returns:
- the coefficient
bn
.
-
of
Create a new coefficient.- Parameters:
a
- "a" coefficientb
- "b" coefficient- Returns:
- the coefficient
-