三次函數的圖形
Author: 王威智

當x=x(a)時有極值

a

b

c

d

$ a= $

$ b= $

$ c= $

$ d= $

u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
a = 1 (slider from 0.1 to 5, step 0.1)
b = -5 (slider from -5 to 5, step 0.1)
c = 4 (slider from -5 to 5, step 0.1)
d = 1 (slider from -5 to 6, step 0.1)
f(x) = a * x^(3) + b * x^(2) + c * x + d
A = TurningPoint(f)
B, C = Extremum(f)
inputBox1 = Textfield(a)
inputBox2 = Textfield(b)
inputBox3 = Textfield(c)
inputBox4 = Textfield(d)
text7: "當 x =" + (LaTeX[x(C)]) + "  時，有最小值 " + (LaTeX[y(C)]) + ""
text6: "當 x = " + (LaTeX[x(B)]) + "時，有最大值" + (LaTeX[y(B)]) + ""
g_1 = 8.027415452775504 (slider from y(Corner[1]) to y(Corner[3]), step 0.01)
g: y = g_1
D, E, F = Intersect(f, g)
text8: "反曲點A=" + (LaTeX[A]) + ""