Entreprise A

Entreprise B

A1: 6
B1: 12000
A2: 8
B2: 15000
A3: 10
B3: 16000
A4: 12
B4: 15000
A: (A1, B1)
B: (A2, B2)
C: (A3, B3)
D: (A4, B4)
liste1: {A, B, C, D}
f = FitPoly(liste1, 2)
c: y = (-250 * x^(2)) + (5000 * x) - 9000
A6: 5
B6: 7500
A7: 10
B7: 10000
A8: 15
B8: 12500
E: (A6, B6)
F: (A7, B7)
G: (A8, B8)
liste2: {E, F, G}
g = FitLineY(liste2)
H, I = Intersect(c, g)
J, K = Intersect(c, xAxis)
h(x) = If[2 ≤ x ≤ 18, f]
p(x) = If[0 ≤ x ≤ 20, ((-(x(g) / y(g))) * x) - z(g) / y(g)]