The fraction to simplify.
Optional
maxDenominator: numberMaximum denominator to include.
Optional
maxLength: numberMaximum length of the array of approximations.
Include semiconvergents.
Include non-monotonically improving approximations.
An array of (semi)convergents.
Calculate best rational approximations to a given fraction that are closer than any approximation with a smaller or equal denominator unless non-monotonic approximations are requested as well.