ContinuedFraction

abstract class ContinuedFraction(maxIter: Int = 100, desiredPrec: Double = KSLMath.defaultNumericalPrecision) : DBHIterativeProcess

Continued fraction

Inheritors

Constructors

Link copied to clipboard
constructor(maxIter: Int = 100, desiredPrec: Double = KSLMath.defaultNumericalPrecision)

Properties

Link copied to clipboard

The achieved precision.

Link copied to clipboard

Desired precision.

Link copied to clipboard

Number of iterations performed.

Link copied to clipboard

Maximum allowed number of iterations.

Link copied to clipboard

Best approximation of the fraction.

Functions

Link copied to clipboard
fun evaluate()

Performs the iterative process. Note: this method does not return anything Subclass must implement a method to get the result

Link copied to clipboard
open override fun evaluateIteration(): Double
Link copied to clipboard

Check to see if the result has been attained.

Link copied to clipboard
Link copied to clipboard