import math

def area_polygon(s, l):
    # s = number of sides, l = side length
    return (s * l ** 2) / (4 * math.tan(math.pi / s))