指數函數與對數函數的交點數
Author: 藍邦偉  老師

$ O $

$f(x)=$

1

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])
A = Point(b)
Zoom = 0.701 (slider from 0.001 to 10, step 0.001)
C_1: (x(A) + Zoom, y(A) + Zoom)
C_2: (x(A) - Zoom, y(A) + Zoom)
C_3: (x(A) - Zoom, y(A) - Zoom)
C_4: (x(A) + Zoom, y(A) - Zoom)
C1 = 0
C2 = 0
C3 = 0
C4 = 0
a_1 = PolyLine(C_1, C_2, C_3, C_4, C_1)
a = 2.5 (slider from 0.001 to 2.5, step 0.001)
text1: "$ y=log_{" + (LaTeX[a]) + "}x $"
text2: "$ y=" + (LaTeX[a]) + "^x $"
u_1 = Vector((x(Corner[2, 1]), 0), (x(Corner[2, 3]), 0))
v_1 = Vector((0, y(Corner[2, 1])), (0, y(Corner[2, 3])))
f(x) = x * sin(1 / x)
inputBox1 = Textfield(f)
g: f