f(t) = \sin (t)

f(t) = \sin(t) - \frac 1 2 \sin (2t)

f(t) = \sin (t) - \frac 1 2 \sin(2t) + \frac 1 3 \sin (3t)

n = 1 (slider from 1 to 10, step 1)
f1(x) = sin(x)
f2(x) = f1(x) - 1.0 / 2.0 * sin(2.0 * x)
f3(x) = f2(x) + 1.0 / 3.0 * sin(3.0 * x)
f4(x) = f3(x) - 1.0 / 4.0 * sin(4.0 * x)
f5(x) = f4(x) + 1.0 / 5.0 * sin(5.0 * x)
f6(x) = f5(x) - 1.0 / 6.0 * sin(6.0 * x)
f7(x) = f6(x) + 1.0 / 7.0 * sin(7.0 * x)
f8(x) = f7(x) - 1.0 / 8.0 * sin(8.0 * x)
f9(x) = f8(x) + 1.0 / 9.0 * sin(9.0 * x)
f10(x) = f9(x) - 1.0 / 10.0 * sin(10.0 * x)