def slope(x1,y1,x2,y2): return (float)(y2-y1)/(x2-x1)