What is a fourstar?
A fourstar (four-pointed star) is an octagon made from a square of side b by standing an isosceles triangle with legs a and apex angle α on each of its sides. All eight edges have the length a. For a spike angle α below 90° the four inner corners point inward and the shape is a concave equilateral octagon, a star with four tips. At α equal to 90° it is a square of side 2a, and above 90° a convex octagon. It has four mirror axes, fourfold rotational symmetry and point symmetry.
How to use it
Type the spike edge a and either the spike angle α at a tip (greater than 0° and less than 180°) or the inner-corner angle β between two spikes (greater than 90° and less than 270°); choose which in the first box. The two angles add up to 270°. 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 spike is an isosceles triangle with legs a and apex angle α standing on a side of the central square, so its base and height are:
$$ b = 2a \sin\frac{\alpha}{2}, \qquad i = a \cos\frac{\alpha}{2} $$
At an inner corner the angle inside the figure is the square angle 90° plus the two spike base angles 90° − α/2:
$$ \beta = 270^{\circ} - \alpha $$
The area is the square plus 4 spikes of area b·i/2, and the outline is 8 edges a:
$$ A = b^{2} + 2 b i, \qquad P = 8a $$
A tip lies b/2 + i from the centre; opposite tips are d = b + 2i apart and neighbouring tips, a quarter turn apart, l = d/√2:
$$ d = b + 2i, \qquad l = \frac{d}{\sqrt{2}} $$
Worked example
The page opens with spike edge a = 5, spike angle α (at a tip) = 50°. Then area A ≈ 56.162842; spike base b (side of the central square) ≈ 4.226183; spike height i ≈ 4.531539; diameter d (tip to opposite tip) ≈ 13.28926. 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
What is the largest spike angle that still gives a star?
Any spike angle below 90°. At 90° the inner corners are straight (180°) and the star becomes a square of side 2a; above 90° the inner corners point outward and the shape is a convex octagon. The page answers all of these cases and says which one it is.
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