Nouveau

G (point moyen)

Solution

Somme des carrés des écarts

écarts

somme des carrés des écarts

a1 = RandomUniform(0.5, 1.5)
A0: (1, RandomUniform[0, 7])
l1 = Sequence(A0 + (k, (k * a1) + RandomUniform[-1.5, 1.5]), k, 0, 9)
A = Element(l1, Length[l1])
f = FitLineY(l1)
B: Sum[l1] / 10
C = (2.631497284716835, 6.529518112713669)
g = Line(B, C)
texte1: "" + (LaTeX[g]) + ""
texte2: "" + (LaTeX[f]) + ""
a = false
l2 = Sequence(Segment[Element[l1, k], Intersect[x = k, g]], k, 1, 10)
b = Sum(l2)
sommecarres = Sum(Sequence[Element[l2, k]^(2), k, 1, 10])
D: (7, 0.5)
E: D + (0.5, 0)
F: D + (0, sqrt(sommecarres))
G: D + (0.5, sqrt(sommecarres))
q1, d, f_1, g_1, e = Polygon(D, F, G, E)
H: D + (0, sommecarres)
I = (10, 1)
J: I - (sqrt(sommecarres), 0)
poly1, h, i, j, k, K, L = Polygon(J, I, 4)
c = false
l = false