Tableau de signe d'une fonction affine

x

-\infty

+ \infty

0

signe de

a = 1.8 (slider from -10 to 10, step 0.1)
b = 4.4 (slider from -10 to 10, step 0.1)
I: ((-1 * b / a), 0)
f = Function((a * x) + b, (-(b / a)) - (100 * (sgn(a) + 1)), (-(b / a)) - (100 * (sgn(a) - 1)))
A = (2, -2)
B = (7, -2)
C = (7, -4)
D = (2, -4)
cadre, a_1, b_1, c, d = Polygon(A, B, C, D)
E = Point(d)
F = Point(b_1)
e = Segment(E, F)
G = Point(a_1)
H = Point(c)
K = Point(c)
h = Segment(G, H)
J = Point(e)
i = Segment(J, K)
intersection: (-1 * b / a) + " "
fonction: f + ""
M2: (5 - (sgn(a) * 1.25), (-1 * 3.5))
M1: (5 - (sgn(a) * 0.75), (-1 * 3.5))
j = Segment(M2, M1)
g = Function((a * x) + b, (-(b / a)) + (100 * (sgn(a) - 1)), (100 * (sgn(a) + 1)) - b / a)
P1: (5 + (sgn(a) * 0.75), (-1 * 3.5))
P2: (5 + (sgn(a) * 1.25), (-1 * 3.5))
k = Segment(P1, P2)
P3: (5 + sgn(a), (-1 * 3.25))
P4: (5 + sgn(a), (-1 * 3.75))
l = Segment(P3, P4)