The function f(n) to calculate the sum.
The upper limit for the sum.
The lower limit for the sum. Defaults to 0. The order is reversed because a is optional. Deal with it.
The maximum error tolerance, geometrically. Defaults to DEFAULT_TOLERANCE.
The calculated sum of f(n), as a Decimal.
Calculates the sum of
f(n)fromatobusing a basic loop until the sum is less than or equal toepsilongeometrically. See calculateSum for a more general function.