Retourner

OK

NB. D'ESSAIS

MOYENNE

SCORES

type

A = (-3, -1)
angleRotation = If(Random[1, 3]  <  3, π / 2, π)
sensRotation: (2 * (Random[0, 1] - 0.5))
Centre: (Random[-4, 4], Random[-4, 4])
directionaxe = Random(0, 7)
Pointaxe: (Random[-4, 4], Random[-4, 4])
preaxe: y = y(Pointaxe)
axe = Rotate(preaxe, (directionaxe * π / 4), Pointaxe)
B = (-3, 2)
M_2 = (1, 2)
L = (2, 0)
K = (3, 0)
J = (3, -1)
poly3, i, j, k, l, m, n_1 = Polygon(A, J, K, L, M_2, B)
Q = Point(m)
P = Point(m)
R = Midpoint(Q, P)
G_1 = Midpoint(Q, R)
C_1 = Midpoint(R, P)
A_8 = (-2, -1)
D_2 = (-1, -1)
E = (1, -1)
H = (2, -1)
O_1 = (1, 0)
poly4, l_1, m_1, o = Polygon(M_2, O_1, L)
p = Semicircle(R, P)
c = Semicircle(D_2, A_8)
d = Semicircle(H, E)
A_7 = Midpoint(A_8, D_2)
B_1 = Midpoint(E, H)
e = CircleSector(A_7, A_8, D_2)
s = CircleSector(B_1, E, H)
t = CircleSector(C_1, P, R)
C_2 = (-2, 1)
D_3 = (-1, 1)
F = (-1, 0)
G = (-2, 0)
S = Midpoint(C_2, F)
T: C_2 + (1 / 3 * (D_3 - C_2))
U: C_2 + (2 / 3 * (D_3 - C_2))
T' = Rotate(T, 90°, S)
U' = Rotate(U, 90°, S)
U'_1 = Rotate(U, 180°, S)
T'_1 = Rotate(T, 180°, S)
T'_2 = Rotate(T, 270°, S)
U'_2 = Rotate(U, 270°, S)
f = Segment(T, U'_1)
g = Segment(U, T'_1)
h = Segment(U', T'_2)
q = Segment(U'_2, T')
V = Intersect(f, h)
W = Intersect(g, h)
Z = Intersect(f, q)
D_1 = Intersect(g, q)
poly1, t_1, u_2, w, t'_2, u'_2, d_1, t'_1, u'_1, z_1, t', u', v = Polygon(T, U, W, T'_2, U'_2, D_1, T'_1, U'_1, Z, T', U', V)
r = Segment(M_2, O_1)
a = Segment(O_1, L)
b = Segment(L, M_2)
F_1 = Mirror(G_1, C_1)
c_1 = CircleSector(C_1, F_1, G_1)
E_1 = Point(m)
C = Mirror(U', C_2)
D = Mirror(T'_2, D_3)
B_2 = Mirror(D_3, D)
A_9 = Mirror(C_2, C)
A_1: A_9 + (1 / 7 * (B_2 - A_9))
A_2: A_9 + (2 / 7 * (B_2 - A_9))
A_3: A_9 + (3 / 7 * (B_2 - A_9))
A_4: A_9 + (4 / 7 * (B_2 - A_9))
A_5: A_9 + (5 / 7 * (B_2 - A_9))
A_6: A_9 + (6 / 7 * (B_2 - A_9))
vec: C - A_9
A1' = Translate(A_1, vec)
A1'_1 = Translate(A_1, Vector[vec / 2])
A'_1 = Translate(A_9, Vector[vec / 2])
A2' = Translate(A_2, Vector[vec / 2])
A2'_1 = Translate(A_2, vec)
A3' = Translate(A_3, vec)
A3'_1 = Translate(A_3, Vector[vec / 2])
A4' = Translate(A_4, Vector[vec / 2])
A4'_1 = Translate(A_4, vec)
A5' = Translate(A_5, vec)
A5'_1 = Translate(A_5, Vector[vec / 2])
A6' = Translate(A_6, Vector[vec / 2])
A6'_1 = Translate(A_6, vec)
B'_1 = Translate(B_2, Vector[vec / 2])
f_1 = Segment(A_1, A_9)
g_1 = Segment(A_9, A'_1)
h_1 = Segment(A'_1, A1'_1)
i_1 = Segment(A1'_1, A1')
j_1 = Segment(A1', C)
k_1 = Segment(A2'_1, A_2)
n_2 = Segment(A_2, A_3)
p_1 = Segment(A_3, A3')
q_1 = Segment(A2', A3'_1)
H_1 = Midpoint(A3'_1, A5'_1)
I_1 = Midpoint(A4', A5'_1)
r_1 = Segment(A4'_1, A_4)
s_1 = Segment(A_4, I_1)
a_1 = Segment(I_1, A_5)
b_1 = Segment(A_5, A5')
e_1 = Segment(A_6, A6'_1)
f_2 = Segment(D, A6'_1)
g_2 = Segment(D, B_2)
objet: {c, c_1, d, e, p, s, t, poly3, poly1, a, a_1, b, b_1, d_1, e_1, f_1, f_2, g_1, g_2, h_1, i, i_1, j, j_1, k, k_1, l, l_1, m, m_1, n_1, n_2, o, p_1, q_1, r, r_1, s_1, t', t'_1, t'_2, t_1, u_2, u', u'_1, u'_2, v, w, z_1, poly4}
A': (4, -1)
u = Vector(A, A')
imageintermediaire = Translate(objet, u)
rayon: 3
c_2 = Circle(A', rayon)
h_2: x = x(A')
O = Intersect(c_2, h_2, 1)
positions = Sequence(Rotate[O, ((2 * k) * π / 24), A'], k, 0, 23)
B' = Point(positions)
retourner: false
axeRetourner = Line(A', B')
image = If(retourner, Mirror[Rotate[imageintermediaire, Angle[O, A', B'], A'], axeRetourner], Rotate[imageintermediaire, Angle[O, A', B'], A'])
A'' = Rotate(A, (sensRotation * angleRotation), Centre)
B'' = Rotate(B, (sensRotation * angleRotation), Centre)
deplacement: true
ecart = If(retourner ≟ deplacement, 50, sqrt((x(A') - x(A''))^(2) + (x(B') - x(B''))^(2) + (y(A') - y(A''))^(2) + (y(B') - y(B''))^(2)))
temps: 0
n: 0
type: 2
reference: 5
difficulte: 1
A2: n
angledegres: (angleRotation / π * 180)
reponse = Rotate(objet, (sensRotation * angleRotation), Centre)
texteSens = If(sensRotation ≟ 1, "dans le sens contraire des aiguilles d'une montre", "dans le sens des aiguilles d'une montre")
enonce: "Rotation de " + angledegres + "° " + texteSens + ""
autorisation: 1
abreviation = Text("rot. " + ((sensRotation * angledegres)))
B2 = Mean(A5:A100)