theta_vec = np.vectorize(theta) # notation fonctionnelle (fonction sur des fonctions) res = theta_vec(np.array([-3,-2,-1,0,1,2,3]))