public abstract class ContinuedFraction
extends java.lang.Object
References:
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 convergentsMathException
- 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:
The recurrence relationship defined in those equations can result in very large intermediate results which can result in numerical overflow. As a means to combat these overflow conditions, the intermediate results are scaled whenever they threaten to become numerically unstable.
x - the evaluation point.epsilon - maximum error allowed.maxIterations - maximum number of convergentsMathException
- if the algorithm fails to converge.
Copyright © 2010 - 2023 Adobe. All Rights Reserved