Test 1

Test 2

Test 3

Test 4

a = -2 (slider from -3 to 3, step 0.05)
b = 0.15 (slider from -3 to 3, step 0.05)
liste: {(-3, 1), (-2, 2), (-1.75, 1), (-1, 0), (-0.75, 1), (0, 1), (0.5, -1), (1, -2), (2, -1), (2.5, 1), (3, 2)}
aa = -2
bb = 3
c = 1
e: y = b
f = Polynomial(liste)
cc = -1
dd = 2
ee = 2
ff = 4
gg = 4
hh = 5
l(x) = (f(x) * If[aa ≤ x ≤ bb, 1])
h(x) = (f(x) * If[aa ≤ x ≤ bb, 1])
j(x) = (f(x) * If[aa ≤ x ≤ bb, 1])
k(x) = (f(x) * If[aa ≤ x ≤ bb, 1])
g(x) = (f(x) * If[-2 ≤ x ≤ 3, 1])