Added by Doug Ritter on March 13, 2000 at 16:02:52:
x(s) = n s^2/(4 tan(180/n))
Where:
n=number of sidess=length of side