@property
    def coefficients(self):
        p1, p2 = self.points
        if p1.x == p2.x:
            return (S.One, S.Zero, -p1.x)
        elif p1.y == p2.y:
            return (S.Zero, S.One, -p1.y)
        return tuple([simplify(i) for i in
               (self.p1.y - self.p2.y,
                self.p2.x - self.p1.x,
                self.p1.x*self.p2.y - self.p1.y*self.p2.x)])
The coefficients (`a`, `b`, `c`) for `ax + by + c = 0`.
dataset/ETHPy150Open sympy/sympy/sympy/geometry/line.py/LinearEntity.coefficients