import cmath
import math

# Multiplier par e puissance iπ/4, encore et encore : un huitième de tour à chaque fois
step = cmath.exp(1j * math.pi / 4)
z = 1
for k in range(1, 9):
    z = z * step
    print(f"{k} fois : real = {round(z.real, 3) + 0.0:6.3f}  imag = {round(z.imag, 3) + 0.0:6.3f}")
