import math

# On cherche θ tel que sin²(θ/2) = 1/4, donc sin(θ/2) = 1/2
half = math.asin(0.5)
theta = 2 * half
print("θ/2 =", round(half, 3), "rad, soit π/6 =", round(math.pi / 6, 3))
print("θ   =", round(theta, 3), "rad, soit π/3 =", round(math.pi / 3, 3), "ou", round(math.degrees(theta), 1), "degrés")
# Contrôle : les deux carrés font 1 au total
print("sin²(θ/2) =", round(math.sin(theta / 2) ** 2, 3))
print("cos²(θ/2) =", round(math.cos(theta / 2) ** 2, 3))
