斜率(1)
Author: 藍邦偉  老師

斜率(1)

.

,

$ 過兩點的直線斜率 $

斜角

u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
A = (-0.33542597646450806, 1.166627099619675)
B = (0.3645607582673523, 1.5610640691908029)
L_1 = Line(A, B)
b = false
α = 3.490658503988659 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
k = 1 (slider from -5 to 5, step 0.1)
L_2: y = tan(α) * x + k
c = false
text1: "m_{\overline{AB}}=\frac{" + (y(B)) + (If[y(A) < 0, "+", "-"]) + (abs(y(A)) * "}{") + (x(B)) + (If[x(A) < 0, "+", "-"]) + (abs(x(A))) + "}=" + ((y(B) - y(A)) / (x(B) - x(A)))
text2: "y=" + (tan(α)) + "x" + (If[k < 0, "-", "+"]) + (abs(k))
text3: "m=tan" + (LaTeX[α]) + "≈" + (LaTeX[tan(α)]) + ""