有範圍限制的二次函數
Author: 藍邦偉　老師

α

β

有範圍限制的二次函數

α

β

$ ≤x≤ $

a = 2 (slider from -5 to 5, step 1)
b = 2 (slider from -5 to 5, step 1)
c = 3 (slider from -5 to 5, step 1)
G: y = a * x^(2) + b * x + c
α = 0.9 (slider from -5 to 5, step 0.1)
β = -1.5 (slider from -5 to 5, step 0.1)
d: x = α
e: x = β
A = Intersect(G, e)
B = Intersect(G, d)
h = Function(a * x^(2) + b * x + c, β, α)
K = (-5, 0)
K_2 = (5, 0)
K_3 = (0, -5)
K_4 = (0, 5)
C = Intersect(d, xAxis)
D = Intersect(e, xAxis)
u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
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)
inputBox1 = Textfield(α)
inputBox2 = Textfield(β)
text2: "f(x)=" + a + "x²" + (If[b < 0, "-", "+"]) + (abs(b)) + "x" + (If[c < 0, "-", "+"]) + (abs(c))
f: x = -(b / (2 * a))