Ülemine ja alumine Riemanni summa 

Riemanni summa abil funktsioonist integraali leidmine

f(x) = (-0.5 * x^(3)) + (1.5 * x^(2)) + 3
A: (-2, 0)
B: (3, 0)
n = 11 (slider from 1 to 50, step 1)
a = UpperSum(f, x(A), x(B), n)
b = LowerSum(f, x(A), x(B), n)
tekst1: "Ülemine Riemanni summa = " + a + ""
tekst2: "Alumine Riemanni summa = " + b + ""
c: a - b
tekst3: "Riemanni summade vahe " + c + ""
F = Integral(f, x(A), x(B))
tekst4: "Integraal f(x) = " + F + ""
tekst6: "\int_{" + (LaTeX[x(A)]) + "}^{" + (LaTeX[x(B)]) + "}{ " + (LaTeX[f]) + "}=" + (LaTeX[F]) + ""