Eau versée (ml)

Hauteur  
d'eau  
(cm)

Hauteurs des “étages”
          (en cm)

“Côtés des carrés”

hEau = 22.1 (slider from 0 to hBas + hHaut)
diagH = 15.839191898578663 (slider from rd / 5 to (30 * rd), step rd / 10)
diagM = 6.222539674441618 (slider from 0 to Min[diagB, diagH] - rd / 5, step rd / 10)
F: (((-diagM)) / 2, 0, 0)
H: (0, diagM / 2, 0)
G: (0, ((-diagM)) / 2, 0)
E: (diagM / 2, 0, 0)
diagB = 22.061731573020282 (slider from rd / 5 to (30 * rd), step rd / 10)
hHaut = 10.8 (slider from 0 to 40)
L: (((-diagH)) / 2, 0, hHaut)
k = Segment(L, F)
f = Line(F, L)
K: (diagH / 2, 0, hHaut)
m = Segment(K, E)
g = Line(K, E)
M = Intersect(g, f)
d, faceEGFH_1, faceEGM, faceFGM, faceFHM, faceEHM, arêteEG_1, arêteFG_1, arêteFH_1, arêteEH_1, arêteEM, arêteGM, arêteFM, arêteHM = Pyramid(E, G, F, H, M)
volumed = Volume(d)
J: (0, ((-diagH)) / 2, hHaut)
l = Segment(J, G)
I: (0, diagH / 2, hHaut)
j = Segment(I, H)
hBas = 17.2 (slider from 0 to 40)
hEauR: hEau - hBas
O'': (0, 0, Min[hEauR, 0])
O': (0, 0, Max[hEauR, 0])
D: (0, ((-diagB)) / 2, (-hBas))
q = Segment(G, D)
C: (0, diagB / 2, (-hBas))
p = Segment(C, H)
B: (((-diagB)) / 2, 0, (-hBas))
r = Segment(B, F)
h = Line(F, B)
A: (diagB / 2, 0, (-hBas))
n = Segment(E, A)
a = Plane(A, C, B)
e = Plane(O'', a)
W = Intersect(n, e)
V = Intersect(p, e)
U = Intersect(r, e)
T = Intersect(q, e)
b = Plane(O', a)
S = Intersect(j, b)
R = Intersect(k, b)
Q = Intersect(l, b)
P = Intersect(m, b)
c, facePQRS_1, faceMPQ, faceMQR, faceMRS, faceMPS, arêtePQ_1, arêteQR_1, arêteRS_1, arêtePS_1, arêteMP, arêteMQ, arêteMR, arêteMS = Pyramid(P, Q, R, S, M)
volumec = Volume(c)
volH = Max(volumec - volumed, 0)
i = Line(E, A)
N = Intersect(i, h)
s, faceTUVW, faceNTU, faceNTW, faceNVW, faceNUV, arêteTU, arêteTW, arêteVW, arêteUV, arêteNU, arêteNT, arêteNW, arêteNV = Pyramid(U, T, W, V, N)
volumes = Volume(s)
o, faceACBD, faceBDN, faceADN, faceACN, faceBCN, arêteBD, arêteAD, arêteAC, arêteBC, arêteBN, arêteDN, arêteAN, arêteCN = Pyramid(B, D, A, C, N)
volumeo = Volume(o)
volB: volumeo - volumes
Textec: "Volume de " + (Name[c]) + " = " + volumec
Pointc = Point(c)
Texted: "Volume de " + (Name[d]) + " = " + volumed
vol: volH + volB
Pointd = Point(d)
O: (0, 0, hEauR)
Texteo: "Volume de " + (Name[o]) + " = " + volumeo
Pointo_1 = Point(o)
Textes: "Volume de " + (Name[s]) + " = " + volumes
Points = Point(s)
t = Volume(o)
texte1: "Volume de " + (Name[o]) + " = " + t
Pointo = Point(o)
PP: (vol, hEau)
u, faceIKJL, faceILM, faceIKM, faceJKM, faceJLM, arêteIL, arêteIK, arêteJK, arêteJL, arêteLM, arêteIM, arêteKM, arêteJM = Pyramid(L, I, K, J, M)
volumeu = Volume(u)
Texteu: "Volume de " + (Name[u]) + " = " + volumeu
Pointu = Point(u)
v, faceEGFH, faceEGN, faceEHN, faceFHN, faceFGN, arêteEG, arêteEH, arêteFH, arêteFG, arêteGN, arêteEN, arêteHN, arêteFN = Pyramid(G, E, H, F, N)
volumev = Volume(v)
Textev: "Volume de " + (Name[v]) + " = " + volumev
Pointv = Point(v)
volMax: volumeu + volumeo - volumev - volumed
q1, l_1, f_1, g_1, j_1 = Polygon(L, F, G, J)
q2, l_2, i_1, h_1, f_2 = Polygon(L, I, H, F)
q3, i_2, h_2, e_1, k_1 = Polygon(I, H, E, K)
q4, e_2, g_2, j_2, k_2 = Polygon(E, G, J, K)
q5, e_3, a_1, c_1, h_3 = Polygon(E, A, C, H)
q6, e_4, g_3, d_1, a_2 = Polygon(E, G, D, A)
q7, f_3, g_4, d_2, b_1 = Polygon(F, G, D, B)
q8, f_4, h_4, c_2, b_2 = Polygon(F, H, C, B)
q9, v_1, u_1, b_3, c_3 = Polygon(V, U, B, C)
q10, v_2, w, a_3, c_4 = Polygon(V, W, A, C)
q11, w_1, t_1, d_3, a_4 = Polygon(W, T, D, A)
q12, t_2, u_2, b_4, d_4 = Polygon(T, U, B, D)
q13, a_5, d_5, b_5, c_5 = Polygon(A, D, B, C)
q14, r_1, f_5, g_5, q_1 = Polygon(R, F, G, Q)
q15, r_2, s_1, h_5, f_6 = Polygon(R, S, H, F)
q16, s_2, p_1, e_5, h_6 = Polygon(S, P, E, H)
q17, q_2, p_2, e_6, g_6 = Polygon(Q, P, E, G)
m_1 = Plane(O, a)
Z, A_1 = Intersect(m_1, faceBDN)
B_1, C_1 = Intersect(m_1, faceACN)
D_1, E_1 = Intersect(m_1, faceJKM)
F_1, G_1 = Intersect(m_1, faceILM)
q18, n_1, m_2, n_2, i_3 = Polygon(G_1, F_1, E_1, D_1)
q19, z_1, j_3, k_3, l_3 = Polygon(Z, A_1, B_1, C_1)
texte2: "Eau versée : " + vol + " ml          -          Hauteur d'eau : " + hEau + " cm"
rd: 2^(0.5)
CotM: diagM / rd
CotH: diagH / rd
CotB: diagB / rd
PPP: PP
CotB_1: diagB / rd
texte5_3: "" + CotB_1 + " cm"
CotB_2: diagB / rd
diagB_1 = 21.496046148071045 (slider from rd_1 / 5 to (30 * rd_1), step rd_1 / 10)
rd_1: 2^(0.5)
CotB_3: diagB_1 / rd_1
texte5_5: "" + CotM + " cm"
texte5_4: "" + CotH + " cm"