餘弦函數的伸縮與平移
Author: 藍邦偉 老師

餘弦函數的伸縮與平移

$ f(x)=Acos(ωx+ϕ)+k $

Reset

A = 1 (slider from 0.1 to 10, step 0.1)
ω = 1 (slider from 0.1 to 5, step 0.01)
k = 0 (slider from -5 to 5, step 0.2)
u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
ϕ = 0 (slider from -6.283185307179586 to 6.283185307179586, step 0.26179939)
f(x) = A * cos(ω * x + ϕ) + k
text2: "$ f(x)=" + (LaTeX[A]) + "cos(" + (LaTeX[ω]) + "x" + (LaTeX[If[ϕ < 0, "-", "+"]]) + "" + (LaTeX[abs(ϕ)]) + ") " + (LaTeX[If[k < 0, "-", "+"]]) + "" + (LaTeX[abs(k)]) + "$"