正切函數與餘切函數的圖形
Author: 藍邦偉  老師

f(x)=tanx

f(x)=cotx

f(x)=tanx

f(x)=cos(x)

正切函數與餘切

函數的圖形

u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
O = (0, 0)
Q_2: 0.8 * Corner[1] + 0.2 * Corner[2]
Q_3: (x(Q_2), y(Corner[4]))
poly1, q_1, q_2, q_4, q_3 = Polygon(Corner[1], Q_2, Q_3, Corner[4])
f(x) = tan(x)
t = -0.9428969312729223 (slider from x(Q_2) to x(Corner[2]), step 0.01)
f_1 = Function(f, x(Q_2), t)
a = true
P: (t + 0.05, f_1(t + 0.05))
b = false
g(x) = cot(x)
g_1 = Function(g, x(Q_2), t)
P_1: (t + 0.05, g_1(t + 0.05))
p_1 = Line((1.5708, 1), (1.5708, -1))
p_2 = Line((3.141592653589793, 1), (3.141592653589793, -1))
p_3 = Line((4.71239, 1), (4.71239, -1))
p_4 = Line((6.28319, 1), (6.28319, -1))