import math

# Le point du cercle de rayon 1 repéré par l'angle θ a pour coordonnées (cos θ, sin θ)
angles = [("0", 0), ("π/4", math.pi / 4), ("π/2", math.pi / 2), ("π", math.pi), ("3π/2", 3 * math.pi / 2), ("2π", 2 * math.pi)]
for name, theta in angles:
    x, y = math.cos(theta), math.sin(theta)
    # + 0.0 : l'arrondi peut laisser un -0.0, qu'on affiche 0.0
    print(f"θ = {name:5} x = cos θ = {round(x, 3) + 0.0:6.3f}   y = sin θ = {round(y, 3) + 0.0:6.3f}")

# Sans arrondi, le quart de tour laisse un reste minuscule à la place de 0
print("math.cos(math.pi / 2) =", math.cos(math.pi / 2))
