指數函數的圖形
Author: 藍邦偉  老師

f(x)=2^x

f(x)=cscx

指數函數的圖形

y=2^x

y=2^{-x}

y=-2^x

y=-2^{-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) = 2^(x)
t = -3.7821465441203483 (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) = 2^(-x)
g_1 = Function(g, x(Q_2), t)
P_1: (t + 0.05, g_1(t + 0.05))
c = false
d = false
h(x) = -2^(x)
h_1 = Function(h, x(Q_2), t)
P_2: (t + 0.05, h_1(t + 0.05))
r(x) = -2^(-x)
r_1 = Function(r, x(Q_2), t)
P_3: (t + 0.05, r_1(t + 0.05))