(This is me trying to prove, so don't mention 1/2(apothem*perimeter))
So I tried to figure out the area of a regular polygon by splitting it up in to triangles and got {ns²*tan[90(n-2)/n)}/4 [n=#sides, s=side length, tan function in degrees] which is similar to what I found online but I found tan(pi/n) instead.
And pi is just 180 degrees.And they aren't equal because if n=5, you get 36 and 54 degrees which are different.

Algebra proves they aren't equal:
(90n-180)/n is not equal to 180/n. Which means I probably did a error in (90n-180)/n.

I figured it out from the fact that if there are n triangles, the angles closest to the center are equally divided, and the triangles are isosceles. So one angle is 360/n, and the other two angles are (180 - 360/n)/2 each, which is (90 - 180)/n = (90n-180)/n.

Where did I go wrong?