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 then
-th "a" and "b" coefficients of the continued fraction.- Since:
- 1.1
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getA()
Returns then
-th "a" coefficient of the continued fraction.double
getB()
Returns then
-th "b" coefficient of the continued fraction.static GeneralizedContinuedFraction.Coefficient
of(double a, double b)
Create a new coefficient.
-
-
-
Method Detail
-
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
public static GeneralizedContinuedFraction.Coefficient of(double a, double b)
Create a new coefficient.- Parameters:
a
- "a" coefficientb
- "b" coefficient- Returns:
- the coefficient
-
-