d = 0 (slider from -5 to 5, step 0.1)
f(x) = cos(x) + d
g(x) = cos(x)