f(x) =2 x - 2

f(x)=-x³ /50+ 2

h(x) = f(x) + g(x)

abscisse_A = -8.5 (slider from -15 to 15, step 0.25)
f(x) = 2.0 * x - 2.0
g(x) = -1.0 * x^(3.0) / 50.0 + 2.0
h(x) = f(x) + g(x)
A: (abscisse_A, 2.0 * abscisse_A - 2.0)
a = OrthogonalLine(A, xAxis)
G = Point(xAxis)
I = Point(xAxis)
b = Line(G, I)
C = Intersect(h, a)
B = Intersect(g, a)
H = Intersect(a, xAxis)
c = Segment(A, H)
d1: y(B)
d2: y(A)
d: d1 + d2
texte1: "Ordonnée de A  = " + d2
texte2: "Ordonnée de B = " + d1
e = Segment(B, H)
i = Segment(C, H)
texte3: "Ordonnée de C = Ordonnée de A + Ordonnée de B =   " + d