summaryrefslogtreecommitdiff
path: root/progs/a526.py
blob: acf2c66daad5c7c7394d6baed5b837c8f3fe1791 (plain)
1
2
3
4
from math import tan, pi
def area_polygon(s,l):
  area = s * (l ** 2) / (4 * tan(pi / s))
  return area