'The slope of this linear entity, or infinity if vertical.
Returns
slope : number or sympy expression
See Also
coefficients
Examples
>>> from sympy import Point, Line
>>> p1, p2 = Point(0, 0), Point(3, 5)
>>> l1 = Line(p1, p2)
>>> l1.slope
5/3
>>> p3 = Point(0, 4)
>>> l2 = Line(p1, p3)
>>> l2.slope
oo'

@property
def slope(self):

    (d1, d2) = (self.p1 - self.p2).args
    if (d1 == 0):
        return S.Infinity
    return simplify((d2 / d1))
