三次函數的圖形
Author: 陳威廷

a=

b=

c=

d=

h=

a = -0.3 (slider from -5 to 5, step 0.1)
b = 2 (slider from -5 to 5, step 0.1)
c = 0.7 (slider from -5 to 5, step 0.1)
d = 3.7 (slider from -5 to 5, step 0.1)
f(x) = a * x^(3) + b * x^(2) + c * x + d
u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
A = TurningPoint(f)
B, C = Extremum(f)
text1: "當X=" + (LaTeX[x(C)]) + ",有最大值Y=" + (LaTeX[y(C)]) + ""
text2: "當x=" + (LaTeX[x(B)]) + ",有最小值Y=" + (LaTeX[y(B)]) + ""
h = 6.32 (slider from y(Corner[1]) to y(Corner[3]), step 0.1)
e: y = h
text3: "反曲點A=" + (LaTeX[A]) + ""
inputBox1 = Textfield(a)
inputBox2 = Textfield(b)
inputBox3 = Textfield(c)
inputBox4 = Textfield(d)
inputBox5 = Textfield(h)