(self)
return simplify(area) / 2
The area of the polygon.

        Notes
        =====

        The area calculation can be positive or negative based on the
        orientation of the points.

        See Also
        ========

        sympy.geometry.ellipse.Ellipse.area

        Examples
        ========

        >>> from sympy import Point, Polygon
        >>> p1, p2, p3, p4 = map(Point, [(0, 0), (1, 0), (5, 1), (0, 1)])
        >>> poly = Polygon(p1, p2, p3, p4)
        >>> poly.area
        3
The area of the polygon.
The area of the polygon .
def area(self):
        """
        The area of the polygon.

        Notes
        =====

        The area calculation can be positive or negative based on the
        orientation of the points.

        See Also
        ========

        sympy.geometry.ellipse.Ellipse.area

        Examples
        ========

        >>> from sympy import Point, Polygon
        >>> p1, p2, p3, p4 = map(Point, [(0, 0), (1, 0), (5, 1), (0, 1)])
        >>> poly = Polygon(p1, p2, p3, p4)
        >>> poly.area
        3

        """
        area = 0
        args = self.args
        for i in xrange(len(args)):
            x1, y1 = args[i - 1].args
            x2, y2 = args[i].args
            area += x1*y2 - x2*y1
        return simplify(area) / 2
def area ( self ) : area = 0 args = self . args for i in xrange ( len ( args ) ) : x1 , y1 = args [ i - 1 ] . args x2 , y2 = args [ i ] . args area += x1 * y2 - x2 * y1 return simplify ( area ) / 2