Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Gauss Formula solution in Clear category for Area of a Convex Polygon by Georgie
import math
def checkio(data):
data.append(data[0])
return math.fabs(
sum(
i[0] * data[ind + 1][1] - i[1] * data[ind + 1][0]
for ind, i in enumerate(data[:len(data) - 1])
)
) / 2
Feb. 26, 2020
Comments: