n*L^2*tan(π/2-π/n)/4.