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

二次函數圖形的平移

顯示:平移對應

g(x)

A(t,f(t))

h(x)

a = 0.2 (slider from -10 to 10, step 0.1)
h = -1 (slider from -10 to 10, step 1)
k = 2 (slider from -10 to 10, step 1)
f_1(x) = a * x^(2)
d = false
f_2(x) = a * (x - h)^(2)
A = Point(f_1)
B: A + (h, 0)
C: B + (0, k)
u = Vector(A, B)
D = Point(xAxis)
E = Point(xAxis)
F = Point(yAxis)
G = Point(yAxis)
f_3(x) = a * (x - h)^(2) + k
v = Vector(B, C)
文字2 = Text("B(t+" + h + ",f(t))", B + (0.1, 0.1))
文字3 = Text("C(t+" + h + ",g(t+" + h + ")+" + k + ")", B + (0.1, k))
w = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
z = Vector((0, y(Corner[1])), (0, y(Corner[3])))
text2: "f_2(x)=" + a + "(x" + (If[h < 0, "+", "-"]) + (abs(h)) + ")²"
text1: "f_1(x)=" + (LaTeX[a]) + "x²"
text3: "f_3(x)=" + a + "(x" + (If[h < 0, "+", "-"]) + (abs(h)) + ")²" + (If[k < 0, "-", "+"]) + (abs(k))
Q_2: 0.27 * Corner[2] + 0.73 * 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])