def produit_scalaire(u,v): (xu,yu) = u (xv,yv) = v return xu*xv+yu*yv