def is_scalar_multiple(p1, p2):
        """Returns whether `p1` and `p2` are scalar multiples
        of eachother.
        """
        # if the vectors p1 and p2 are linearly dependent, then they must
        # be scalar multiples of eachother
        m = Matrix([p1.args, p2.args])
        # XXX: issue #9480 we need `simplify=True` otherwise the
        # rank may be computed incorrectly
        return m.rank(simplify=True) < 2
dataset/ETHPy150Open sympy/sympy/sympy/geometry/point.py/Point.is_scalar_multiple/original