A few days ago I was trying to come up with a formula to calculate pi, and after a few minutes of thinking, I got this! I know the formula's rather inefficient, but I'm pretty happy with it.
This calculates the perimeter of a polygon with a diameter of one, and n sides.