f(x) = If[0 ≤ x ≤ 6, sqrt(36 - x^(2))]
teksti1 = LaTeX(f, true, true)
n = 14 (slider from 1 to 100, step 1)
alasumma = LowerSum(f, 0, 6, n)
teksti2 = LaTeX(alasumma, true, true)
yläsumma = UpperSum(f, 0, 6, n)
teksti3 = LaTeX(yläsumma, true, true)
tarkka = Integral(f, 0, 6)
teksti4 = LaTeX(tarkka, true, true)