直線的點斜式
Author: 藍邦偉  老師

點斜式

u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
f(x) = 2 * sin(x) + cos(2 * x) + 2
h = 5 (slider from -5 to 5, step 0.1)
k = 2.6 (slider from -5 to 5, step 0.1)
A: (h, k)
m = 1.6 (slider from -20 to 20, step 0.1)
L: y - k = m * (x - h)
文字2: "通過點P(" + (LaTeX[h]) + "," + (LaTeX[k]) + ")且斜率m為" + (LaTeX[m]) + ""
文字3: "的直線方程式為L:(y" + (LaTeX[If[k > 0, "-", "+"]]) + "" + (LaTeX[abs(k)]) + ")=" + (LaTeX[m]) + "(x" + (LaTeX[If[h > 0, "-", "+"]]) + "" + (LaTeX[abs(h)]) + ")"