'The Taxicab Distance from self to point p.
Returns the sum of the horizontal and vertical distances to point p.
Parameters
p : Point
Returns
taxicab_distance : The sum of the horizontal
and vertical distances to point p.
See Also
sympy.geometry.point.Point.distance
Examples
>>> from sympy.geometry import Point
>>> p1, p2 = Point(1, 1), Point(4, 5)
>>> p1.taxicab_distance(p2)
7'

def taxicab_distance(self, p):

    (s, p) = Point._normalize_dimension(self, Point(p))
    return Add(*(abs((a - b)) for (a, b) in zip(s, p)))
