Translations

Reflections and Scale Changes

one cycle

h = 0 (slider from -5 to 5, step 0.1)
k = 2 (slider from -5 to 5, step 0.1)
a = 3 (slider from -4 to 5, step 0.1)
b = 2 (slider from -4 to 5, step 0.1)
f(x) = (a * cos((x - h) / b)) + k
text1: "f(x) = " + (LaTeX[f]) + ""
A = Point(f)
p: ((2 * π) * b)
B: (x(A) + p, f(x(A) + p))
c = Segment(A, B)
text4: "period = 2 π( " + b + ") = " + p + ""