d = -1.0999999999999996 (slider from -5 to 5, step 0.1)
a = -1.9 (slider from -5 to 5, step 0.1)
c = 0.3000000000000007 (slider from -5 to 5, step 0.1)
b = 1 (slider from -5 to 5, step 0.1)
f(x) = a cos(b x - c) + d
A = Point(f)
B: (x(A), 0)
C: (0, y(A))
e = Segment(C, A)
g = Segment(A, B)