f ( x ) = a \cdot x^3 + b \cdot  x^2 + c \cdot  x + d

Les points rouges sont déplaçables à la souris

d = 10 (slider from -20 to 20, step 0.1)
c = 15 (slider from -20 to 20, step 0.1)
b = -9 (slider from -10 to 10, step 0.1)
a = 1 (slider from -5 to 5, step 0.02)
f(x) = (a * x^(3)) + (b * x^(2)) + (c * x) + d
A = Point(f)
B = Point(f)
textex2: "x_2 = " + (x(B)) + ""
textex1: "x_1 = " + (x(A)) + ""
textey1: "y_1 = " + (y(A)) + ""
textey2: "y_2 = " + (y(B)) + ""
S_{A; B} = Line(A, B)