|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.util.ContinuedFraction
public abstract class ContinuedFraction
Provides a generic means to evaluate continued fractions. Subclasses simply provided the a and b coefficients to evaluate the continued fraction.
References:
Method Summary | |
---|---|
double |
evaluate(double x)
Evaluates the continued fraction at the value x. |
double |
evaluate(double x,
double epsilon)
Evaluates the continued fraction at the value x. |
double |
evaluate(double x,
double epsilon,
int maxIterations)
Evaluates the continued fraction at the value x. |
double |
evaluate(double x,
int maxIterations)
Evaluates the continued fraction at the value x. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public double evaluate(double x) throws MathException
x
- the evaluation point.
MathException
- if the algorithm fails to converge.public double evaluate(double x, double epsilon) throws MathException
x
- the evaluation point.epsilon
- maximum error allowed.
MathException
- if the algorithm fails to converge.public double evaluate(double x, int maxIterations) throws MathException
x
- the evaluation point.maxIterations
- maximum number of convergents
MathException
- if the algorithm fails to converge.public double evaluate(double x, double epsilon, int maxIterations) throws MathException
Evaluates the continued fraction at the value x.
The implementation of this method is based on equations 14-17 of:
x
- the evaluation point.epsilon
- maximum error allowed.maxIterations
- maximum number of convergents
MathException
- if the algorithm fails to converge.
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |