def équation_cartésienne(A,B): def test(x,y): return sont_alignés(A,B,(x,y)) return test