What is a concave polygon?
A concave polygon here means the regular concave polygon, also called an alternating non-convex polygon. Start with a regular polygon with an even number n of corners, at least eight, and edge a. Fold every second corner inward: it is reflected in the line joining its two neighbouring corners. All n edges keep the length a. The corners then alternate between n/2 tips and n/2 inward corners. The shape is point symmetric, has mirror axes through opposite tips and through opposite inward corners, and comes back to itself after a turn of 720°/n. The unfolded shape is the regular polygon.
How to use it
Type the edge a and the number of corners n, an even whole number from 8 to 1,000. Fewer than eight corners do not work: with six, the folded corners meet in the centre. The length unit is only a label: lengths come out in that unit and areas in its square. Each length you type must be from 0.000001 to 1,000,000,000 (a box that allows 0 also accepts 0), each area from 0.000000000001 to 1,000,000,000,000,000,000 and each angle greater than 0° and less than 180°; anything else, including text, is refused with a sentence that says why, and so is a set of values that cannot form the shape.
Derivation of the formulas
Each folded corner of the regular polygon is the apex of an isosceles triangle with legs a and apex angle (n − 2)·180°/n, the polygon angle; its two base angles are 180°/n. Reflecting the apex in the base removes this triangle and the same triangle again, so every fold takes ½a²·sin(2π/n) twice from the regular polygon:
$$ A = \frac{n a^{2}}{4 \tan(\pi/n)} - \frac{n}{2} a^{2} \sin\frac{2\pi}{n}, \qquad P = n a $$
A tip loses two base angles on each side, and an inward corner is the polygon angle turned inside out:
$$ \alpha = \frac{(n - 2)\,180^{\circ}}{n} - 4\cdot\frac{180^{\circ}}{n} = \frac{(n - 6)\,180^{\circ}}{n}, \qquad \beta = 360^{\circ} - \frac{(n - 2)\,180^{\circ}}{n} = \frac{(n + 2)\,180^{\circ}}{n} $$
The tips stay on the circle of radius R = a/(2 sin(π/n)). Two neighbouring tips are two polygon steps apart, and a folded corner lands as far inside the chord as it stood outside:
$$ c = 2R \sin\frac{2\pi}{n}, \qquad r_i = 2R\cos\frac{2\pi}{n} - R $$
The tip angle is above 0 only for n greater than 6, which is why n must be at least 8.
Worked example
The page opens with edge a = 2, number of corners n (even, at least 8) = 8. Then area A ≈ 8; point chord c (between two neighbouring tips) ≈ 3.695518; tip angle α ≈ 45°; inward corner angle β (inside the shape) ≈ 225°. Values are shown with up to six decimals; a value below 0.0000005 or of 10¹⁵ and more is shown as its plain 12-digit number instead.
Frequently asked questions
Why only an even number of corners?
Every second corner is folded, so the corners must pair up as tip and inward corner all the way round. With an odd number one tip would sit next to another tip.
Why does the unit not change the numbers?
The calculator does not convert between units. Every length is read in the unit you chose, so the unit only labels the results; areas come out in that unit squared.
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
References
H. S. M. Coxeter, Introduction to Geometry, 2nd edition, Wiley, 1969
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018