由對稱方法畫出對數函數的圖形
Author: 藍邦偉  老師

$a=%v$

$ O $

$ 對數函數的圖形 $

$a=%v$

2

a

c

a = 2 (slider from 0.1 to 5, step 0.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.7 * Corner[1] + 0.32 * 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])
c = If(a ≠ 1, a, 1.1)
b = false
d = false
e = false
f(x) = log(c, x)
f_1(x) = log(c, -x)
f_2(x) = -log(c, x)
f_3(x) = -log(c, -x)
t_f: "$ y=f(x)=log_{" + (LaTeX[c]) + "}x $"
t_1: "$ (1)\;y=f(-x)=log_{" + (LaTeX[c]) + "}(-x)$
$\;\;\;\;\;圖形對稱於\;y\;軸$"
t_2: "$ (2)\;y=-f(x)=-log_{" + (LaTeX[c]) + "}x $
$\;\;\;\;\;圖形對稱於\;x\;軸$"
t_3: "$ (3)\;y=-f(-x)$
$\;\;\;\;\;\;\;\;=-log_{" + (LaTeX[c]) + "}(-x) $
$\;\;\;\;\;圖形對稱於原點$"