n

Écris le nombre de sommets, de faces
 et d'arêtes en fonctions de n.

S=

F=

A=

valider

valider

valider

m = 1.6 (slider from 0 to 3, step 0.1)
a = 5 (slider from 3 to 20, step 1)
L_2 = Sequence(Rotate[(0, 3 - m, m), ((2 * i) * π / a)], i, 1, a)
L_{1} = Sequence(Rotate[(0, 3, 0), ((2 * i) * π / a)], i, 1, a)
Base_1 = Polygon(L_{1})
Base_2 = Polygon(L_2)
L_3 = Sequence(Polygon[Element[L_{1}, i], Element[L_2, i], Element[L_2, i + 1], Element[L_{1}, i + 1]], i, 1, a - 1)
poly1, f, g, h, i = Polygon(Element[L_{1}, a], Element[L_2, a], Element[L_2, 1], Element[L_{1}, 1])
L_4 = Insert(poly1, L_3, a)
L_5 = Sequence(Rotate[(0, 3 - m, (-m)), ((2 * i) * π / a)], i, 1, a)
poly2, j, k, l, p = Polygon(Element[L_{1}, a], Element[L_5, a], Element[L_5, 1], Element[L_{1}, 1])
L_6 = Sequence(Polygon[Element[L_{1}, i], Element[L_5, i], Element[L_5, i + 1], Element[L_{1}, i + 1]], i, 1, a - 1)
L_7 = Insert(poly2, L_6, a)
Base_3 = Polygon(L_5)
sommets(n) = (3 * n)
faces(n) = (2 * n) + 2
aretes(n) = (5 * n)
nulle(n) = 0
rep1(n) = 0
rep2(n) = 0
rep3(n) = 0
ChampTexte1 = Textfield(rep1)
ChampTexte2 = Textfield(rep2)
ChampTexte3 = Textfield(rep3)