import math

# Pour n'importe quel angle : le carré du cosinus plus le carré du sinus fait 1
for name, theta in [("0", 0), ("π/4", math.pi / 4), ("π/3", math.pi / 3), ("1", 1), ("2", 2), ("π", math.pi)]:
    c, s = math.cos(theta), math.sin(theta)
    total = c ** 2 + s ** 2
    print(f"θ = {name:4} cos² θ = {c ** 2:.3f}   sin² θ = {s ** 2:.3f}   somme = {round(total, 3)}")

# C'est la norme de la leçon 2.4 : le point (cos θ, sin θ) est toujours à la distance 1 du centre
c, s = math.cos(1), math.sin(1)
print("distance au centre pour θ = 1 :", round(math.sqrt(c ** 2 + s ** 2), 3))
