What is a head shape?
A head shape is a circular segment larger than a half disc, of radius r, standing on a rectangle, the neck, whose top side is the chord of the segment. The neck has the width a of that chord and the height b. The chord subtends the gap angle α at the centre of the circle, and the arc of the head the segment angle Θ, so α + Θ = 360°. The gap angle may be any value above 0° up to 180°; at 180° the head is a half disc and the neck is as wide as the head, and for every smaller α the neck is narrower than the head, whose width is the diameter 2r. The shape is mirror symmetric about the perpendicular bisector of the neck.
How to use it
Type the radius r, the gap angle α in degrees and the neck height b. The neck width follows from the radius and the gap angle, because the neck is exactly as wide as the chord of the segment. The length unit is only a label: lengths come out in that unit and areas in its square. Radius r and neck height b must each be from 0.000001 to 1,000,000,000 and the gap angle α must be greater than 0° and at most 180°; a number may also be typed in exponent form such as 2.5e3. 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
The chord of the gap angle α in a circle of radius r, and the distance from the centre to that chord, are
$$ a = 2r\sin\frac{\alpha}{2}, \qquad d = r\cos\frac{\alpha}{2} $$
The head reaches from the chord over the centre to the far side of the circle, so its height is r + d, and the total height adds the neck. Since α is at most 180°, sin(α/2) is at most 1 and a is at most 2r, with equality only at 180°:
$$ h_{\text{head}} = r\left(1 + \cos\frac{\alpha}{2}\right), \qquad h = h_{\text{head}} + b $$
The large segment is the sector of angle Θ = 360° − α plus the triangle of the centre and the chord, of area (r²/2)·sin α. The outline is the arc, the bottom of the neck and its two sides; the chord itself is inside the shape:
$$ A = \frac{r^{2}}{2}\left(\Theta + \sin\alpha\right) + ab, \qquad P = r\Theta + a + 2b $$
With the opening values r = 5, α = 90° and b = 4: a = 10 sin 45° = 5√2 ≈ 7.071068, the head height is 5(1 + cos 45°) ≈ 8.535534, the total height ≈ 12.535534 and the arc 5·(3π/2) ≈ 23.561945.
Worked example
The page opens with radius r = 5, gap angle α (central angle over the chord) = 90°, neck height b = 4. Then area A ≈ 99.689134; perimeter P ≈ 38.633013; neck width a (the chord of the segment) ≈ 7.071068; total height (bottom of the neck to the top of the arc) ≈ 12.535534; arc length ≈ 23.561945. Each value is shown rounded once, from the computed number, to six decimals or to 12 significant digits, whichever is fewer; a value of 10¹² and more is written as its 12 significant digits times a power of ten, such as 1.23456789012 × 10¹⁵, since a computed number holds no more digits than that; a value below 0.0000005 is shown as its plain 12-digit number instead.
Frequently asked questions
Why is the neck narrower than the head?
The head is as wide as the circle, 2r, while the neck is as wide as the chord, 2r·sin(α/2). For a gap angle below 180° the sine is below 1, so the neck is narrower; at 180° the head is a half disc and both are 2r wide.
Is the chord part of the perimeter?
No. The chord is where the head and the neck meet, inside the shape. The perimeter is the arc, the two sides of the neck and its bottom.
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