What is a double star polygon?
A double star polygon here is an eight-pointed star built on a regular octagon of edge b: on every edge stands an isosceles triangle, a ray, with base b. The four rays on every second edge form set 1, with edges l1 and height h1; the four rays on the other edges form set 2, with edges l2 and height h2. Usually one set is longer, which gives four long and four short rays. The outline has 16 corners: 8 tips and 8 corners between rays. The shape has four mirror axes, fourfold rotational symmetry and point symmetry; with both sets equal it is the regular eight-pointed star on an octagon, with eight mirror axes. Another eight-pointed star, the star of Lakshmi, is made of two overlapping squares instead.
How to use it
Type the base b (the octagon edge) and, for each ray set, either its edge or its height; choose which in the first box. A ray edge must be longer than b/2. Either set may be the longer one: the sets are named by position, not by size. 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 ray is an isosceles triangle with base b, legs l and height h, so h and l give each other:
$$ h = \sqrt{l^{2} - \frac{b^{2}}{4}}, \qquad l = \sqrt{h^{2} + \frac{b^{2}}{4}} $$
The regular octagon of edge b has area 2(1 + √2)b² and inradius ρ = (1 + √2)b/2. Four rays of each set are added, each b·h/2, and the outline is eight edges of each set:
$$ A = 2(1 + \sqrt{2})\, b^{2} + 2b\,(h_1 + h_2), \qquad P = 8 l_1 + 8 l_2 $$
Opposite tips of one set lie on a line through the centre, ρ + h from it:
$$ d_1 = 2(\rho + h_1), \qquad d_2 = 2(\rho + h_2) $$
A ray has base angles θ with tan θ = 2h/b and the tip angle 180° − 2θ. At a corner between two rays the shape holds the octagon angle 135° and one base angle of each ray, γ = 135° + θ1 + θ2. The corner points inward, as in a star, when γ is above 180°.
Each ray lies within 22.5° of its own axis as seen from the centre, so rays never overlap, however long they are.
Worked example
The page opens with base b (edge of the octagon) = 2, ray edge l1 (set 1) = 5, ray edge l2 (set 2) = 3. Then area A ≈ 50.223335; perimeter P ≈ 64; diameter d1 (tip to opposite tip, set 1) ≈ 14.626386; diameter d2 (tip to opposite tip, set 2) ≈ 10.485281. 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
Must set 1 be the long rays?
No. The page names the sets by position, every second edge, and accepts either set being longer. Swapping the two sets gives the same star turned by 45°.
When is it not a star?
When both sets of rays are very flat: if the two base angles together are less than 45°, the corners between rays no longer point inward and the outline is a convex 16-gon; at exactly 45° those corners are straight and the outline is a convex octagon. The page still answers and says so.
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