rectangles verts

rectangles rouges

f = Function(x^(2), 0, 1)
O = (0, 0)
A = (1, 0)
n = 2 (slider from 1 to 100, step 1)
a = LowerSum(f, 0, 1, n)
b = UpperSum(f, 0, 1, n)
c = true
d = true
B = (1, 1)
H = (0.5, 1)
D = (0.5, 0.25)
E = (0.5, 0)
F = (0, 0.25)