If n is even number (2 m), I found almost perfect equation of 2 m-gon which is

In the last section, we will see the perfect expression for n-gon which obviously includes 2 m-gon.