a = 5 (slider from -5 to 5, step 0.1)
b = 0.1 (slider from -5 to 5, step 0.1)
c = -6 (slider from -20 to 20, step 0.1)
d = -0.1 (slider from -5 to 5, step 0.01)
f(x) = a * cos(b + x * d) - c
e = 1 (slider from -5 to 5, step 0.1)
g(x) = a * cos(b + x * d) + e
A = (-46.23167747984311, 17.592095968709444)
B = (-40.89888103682375, 14.667659209634312)
h = Line(A, B)
i = Segment(A, B)