# -*- coding: utf-8 -*- """ Created on Mon Dec 08 11:43:04 2014 @author: grivet Listing 2.5 : Utilisation de nombres complexes. """ import numpy as np x = 1; y = 1j z = x+y print (z) phi = 1j*np.pi/4 print (np.exp(phi)) print(np.real(np.exp(phi))) print(np.imag(np.exp(phi))) print (1j*1j)