Regular Polygon Calculator: Area, Perimeter, Interior Angle

The regular polygon calculator takes the number of sides n and the side length s and returns the area A = \dfrac{n s^2}{4\tan(\pi/n)}, the perimeter P = ns and each interior angle \dfrac{(n-2)\cdot 180^\circ}{n}. It can also work backwards, solving the side length from the area and the number of sides.