二次函數的圖形(2)
Author: 藍邦偉　老師

.

 二次函數的圖形(2)

/

2

f(x)=ax²+bx+c

f(x)=a(x-h)²+k

$ f(x)=a(x-α)(x-β) $

a = 0.8 (slider from -5 to 5, step 0.1)
b = -1.5 (slider from -5 to 5, step 0.1)
c = -1 (slider from -10 to 10, step 0.1)
f(x) = a * x^(2) + b * x + c
A, B = Root(f)
d = false
u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
h = 1 (slider from -5 to 5, step 0.1)
k = 1 (slider from -5 to 5, step 0.1)
V: (h, k)
e = false
α = -2.5 (slider from -5 to 5, step 0.1)
β = 1.5 (slider from -5 to 5, step 0.1)
f_3(x) = a * (x - α) * (x - β)
C: (α, 0)
D: (β, 0)
g = true
T_1 = Corner(1)
T_4 = Corner(4)
T_2: (7 * Corner[1] + 3 * Corner[2]) / 10
T_3: (7 * Corner[4] + 3 * Corner[3]) / 10
多邊形1, t_1, t_2, t_3, t_4 = Polygon(T_1, T_2, T_3, T_4)
f_2(x) = a * (x - h)^(2) + k
i = Segment(T_2, T_3)
text4: "f(x)=" + a + "x²" + (If[b < 0, "-", "+"]) + (abs(b)) + "x" + (If[c < 0, "-", "+"]) + (abs(c))
ba: b * a
ab: a * b
text5: "f(x)=" + a + "(x" + (If[h < 0, "+", "-"]) + (abs(h)) + ")²" + (If[k > 0, "+", "-"]) + k
text6: "f(x)=" + a + "(x" + (If[h > 0, "-", "+"]) + (abs(h)) + ")(x" + (If[k > 0, "-", "+"]) + (abs(k)) + ")"