指數函數的平移
Author: 藍邦偉  老師

底數

對數函數的平移

$\;\;\;\;\;\;\;⇑ $
$⇐平移 ⇒$
$\;\;\;\;\;\;\;⇓$

上

下

左

右

n = 19 (slider from 1 to 49, step 1)
u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
list2 = Sequence(k / 10, k, 11, 50)
list1 = Sequence(k / 10, k, 1, 9)
list3 = Join({list1, list2})
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
O = (0, 0)
h = 0 (slider from -7 to 7, step 1)
a = Element(list3, n)
A = (0.4, 5.44)
k = 0 (slider from -5 to 5, step 1)
f(x) = log(a, x)
g(x) = f(x - h) + k
Q_2: 0.3 * Corner[2] + 0.7 * Corner[1]
Q_3: (x(Q_2), y(Corner[3]))
poly1, b, q_2, q_3, c = Polygon(Corner[1], Q_2, Q_3, Corner[4])
text1: "$ g(x)=log_{" + (LaTeX[a]) + "}{" + (LaTeX[If[h ≠ 0, "(x", "x"]]) + "" + (LaTeX[If[h > 0, "-", If[h < 0, "+", ""]]]) + "" + (LaTeX[If[h ≠ 0, abs(h) * ")", ""]]) + "}" + (LaTeX[If[k > 0, "+", If[k < 0, "-", ""]]]) + " " + (LaTeX[If[k ≠ 0, abs(k), ""]]) + "$"
text2: "f(x)=log_{" + (LaTeX[a]) + "}x"