f1

f2

f3

f4

f5

λ = 80
T = 10
t = 6.55 (slider from 0 to 40, step 0.01)
a1 = 0 (slider from 0 to 2, step 0.1)
f1(x) = a1 * sin(2.0 * 3.141592653589793 / λ * x) * sin(2.0 * 3.141592653589793 / T * t)
a2 = 0 (slider from 0 to 2, step 0.1)
f2(x) = a2 * sin(2.0 * 3.141592653589793 / λ * x * 2.0) * sin(2.0 * 3.141592653589793 / T * t * 2.0)
a3 = 0 (slider from 0 to 2, step 0.1)
a4 = 0 (slider from 0 to 2, step 0.1)
a5 = 2 (slider from 0 to 2, step 0.1)
f3(x) = a3 * sin(2.0 * 3.141592653589793 / λ * x * 3.0) * sin(2.0 * 3.141592653589793 / T * t * 3.0)
f5(x) = a5 * sin(2.0 * 3.141592653589793 / λ * x * 5.0) * sin(2.0 * 3.141592653589793 / T * t * 5.0)
f4(x) = a4 * sin(2.0 * 3.141592653589793 / λ * x * 4.0) * sin(2.0 * 3.141592653589793 / T * t * 4.0)
g(x) = f1(x) + f2(x) + f3(x) + f4(x) + f5(x)
A = Point(yAxis)
C = (-4.5819434875737395, 5.598057346911781)
D = (-4.480084432687867, -4.006482321661257)
X: (λ / 2.0, 0.0)
e = OrthogonalLine(X, xAxis)
h = OrthogonalLine(A, yAxis)
F = Intersect(e, h)
G = Point(h)
I = Point(g)
I': (t, y(I) - 10.0)
E = (0, 20)
H = (0, -20)
poly1, h_1, e_1, d, f, J, K = Polygon(H, E, 4.0)
L: (λ / 2.0, 20.0)
M: (λ / 2.0, -(20.0))
poly2, l, m, i, j, N, O = Polygon(L, M, 4.0)
B = (2.176949388162952, 7.619293138640796)
P: (x(B) + 20.0, y(B))
k = Segment(B, P)
Q = Point(n)
R = Point(n)
S: (x(Q), -(5.0))
U: (x(R), -(5.0))
poly3, s, q, r, u = Polygon(S, Q, R, U)
distanceQR = Distance(Q, R)
TexteQR: Name[Q] + (Name[R]) + " \, = \, " + distanceQR
texte1: " T = " + distanceQR + " ms" + "
f  = " + (1.0 / distanceQR * 1000.0) + " Hz"
V: (x(B), y(B) + 8.0)
W: (x(P), y(V))
p = Segment(V, B)
a_1 = Segment(W, P)
b_1 = Segment(V, W)