f(x) = exp(x^(2))
a = LowerSum(f, 0, 1, 5)
b = UpperSum(f, 0, 1, 5)