General polygon formulas
For a regular polygon with n sides of length s: area = (n * s^2) / (4 * tan(pi/n)). Interior angle = (n-2) * 180 / n. Exterior angle = 360 / n.
The number of diagonals is n(n-3)/2. A triangle has 0, a square has 2, a pentagon has 5, and so on.