Lineare Funktionen

Steigung

y-Achsenabschnitt

m

$1m=2$

a

a = 1 (slider from -5 to 5)
m = 2 (slider from -5 to 5)
f(x) = (m * x) + a
M = Point(f)
g(x) = y(M)
N = Point(g)
P_{1}: (x(M), f(x(M)))
P_{2}: (x(N), f(x(N)))
d1, p_{3}, p_{1}, p_{2} = Polygon(P_{1}, P_{2}, N)
B = Intersect(xAxis, yAxis)
A: (0, f(0))
sign_a = If(sgn(a) < 0, "", "+")
text3: "f(x) = \textcolor{red}{" + (LaTeX[m]) + "}x" + (LaTeX[sign_a]) + "\textcolor{#00aa00}{" + (LaTeX[a]) + "}"
h = Segment(B, A)