n

Pendiente

Ordenada en el origen

Ángulo con la horizontal

n

m = 2 (slider from -5 to 5, step 0.1)
n = -3 (slider from -5 to 5, step 0.1)
N: (0, n)
f(x) = (m * x) + n
A = Point(f)
B = Point(f)
g = OrthogonalLine(A, yAxis)
h = OrthogonalLine(B, xAxis)
C = Intersect(g, h)
i = Segment(A, C)
j = Segment(B, C)
difv: y(B) - y(A)
difh: x(B) - x(A)
D = Midpoint(B, C)
E = Midpoint(C, A)
texto1: "" + difv + ""
texto2: "" + difh + ""
a = false
b = false
k = OrthogonalLine(N, yAxis)
NN: (1, n)
NNN: (x(NN), f(x(NN)))
α = Angle(NN, N, NNN)
β = Angle(NNN, N, NN)
γ = If(α ≤ 180°, α, β)
texto3: "" + (LaTeX[γ]) + ""
texto4: "-" + (LaTeX[γ]) + ""
c = false
texto5a = If(c ≟ true, If[α ≤ 180°, texto3, texto4], "")
F = Intersect(xAxis, yAxis)
l = Segment(F, N)
texto5b = If(c ≟ true, "= tg(" + texto5a + ")", "")
texto7: "m=" + (LaTeX[m]) + "=\dfrac{" + (LaTeX[difv]) + "}{" + (LaTeX[difh]) + "}" + (LaTeX[texto5b]) + ""
texto5: "" + texto5a + ""
texto6: "f(x)=mx+n\\f(x)=" + (LaTeX[f]) + ""