Mit diesen beiden Schiebe-
reglern die Gerade anpassen

Das soll minimal werden

m = 0.6 (slider from -4 to 4, step 0.01)
b = 0 (slider from -5 to 5, step 0.04)
g(x) = m * x + b
A = (1, 0.74)
B = (3, 3.16)
C = (5, 3.84)
D = (7, 3.52)
E = (9, 5.44)
a = OrthogonalLine(A, xAxis)
c = OrthogonalLine(B, xAxis)
d = OrthogonalLine(C, xAxis)
e = OrthogonalLine(D, xAxis)
f = OrthogonalLine(E, xAxis)
F = Intersect(g, a, 1.0)
G = Intersect(g, c, 1.0)
H = Intersect(g, d, 1.0)
I = Intersect(e, f)
J = Intersect(g, e, 1.0)
K = Intersect(g, f, 1.0)
poly1, L, M, h, i, j, k = Quadrat(F, A)
poly2, N, O, l, n, p, q = Quadrat(G, B)
poly3, P, Q, r, s, t, a1 = Quadrat(H, C)
poly4, R, S, b1, c1, d1, e1 = Quadrat(J, D)
poly5, T, U, f1, g1, h1, i1 = Quadrat(K, E)
Su: poly1 + poly2 + poly3 + poly4 + poly5
T3: Su + ""

Tool: Quadrat
Input: F, G
Output: poly1, H, I, f, g, h, i

a = Segment(F, G)
b = OrthogonalLine(G, a)
c = OrthogonalLine(F, a)
d = Circle(G, F)
e = Circle(F, G)
H = Intersect(d, b, 2.0)
I = Intersect(e, c, 2.0)
poly1, f, g, h, i = Polygon(F, G, H, I)