Upper-Lower Sum
Author: K. Penner

Approximate the area under a curve between A and B with Upper and Lower Sums.
Use the slider to change the numer of rectangles in the approximation.
Use the check boxes to turn Upper, Lower, and Area pictures on or off.
Slide points A and B to change the bounds.
Change the function, f(x), as you wish.

Lower Sum

Upper Sum

Integral

delitev = 6 (slider from 1 to 100, step 1)
f(x) = 8.0 - 0.15 * x^(2.0)
B = Point(xAxis)
b: x(B)
A = Point(xAxis)
a: x(A)
spVsota = LowerSum(f, a, b, delitev)
zgVsota = UpperSum(f, a, b, delitev)
prikazSV = true
prikazZgVs = false
integral = Integral(f, a, b)
prikazVrInt = false
T1: "Spodnja vsota =" + spVsota
T2: "Zgornja vsota = " + zgVsota
T3: "Integral (ploščina) = " + integral