def équation_droite(A,B): (a,b)=vecteur(A,B) return "{}×x+({})×y = {}".format(-b,a,-b*A[0]+a*A[1])