What this calculator does
A salinon (Greek for a salt cellar) is the shape Archimedes described in his Book of Lemmas: on a diameter of length 2R draw a large semicircle; at both ends of the diameter cut away two equal semicircles of radius r on the same side; on the part of the diameter left between them (length 2m, with m = R − 2r) add a semicircle of radius m on the other side. Its boundary is four semicircular arcs.
Derivation of the formulas
Area:
$$ A = \frac{\pi}{2}\left(R^2 - 2r^2 + m^2\right) = \pi (R - r)^2 $$
Perimeter:
$$ P = \pi R + 2\pi r + \pi m = 2\pi R $$
Middle radius:
$$ m = R - 2r $$
Add and subtract half discs: \(\tfrac{\pi}{2}R^2 - 2\cdot\tfrac{\pi}{2}r^2 + \tfrac{\pi}{2}m^2\). With \(m = R - 2r\) the bracket is \(R^2 - 2r^2 + R^2 - 4Rr + 4r^2 = 2(R - r)^2\), so \(A = \pi(R - r)^2\): the salinon has the same area as the circle whose diameter is its axis of symmetry, \(R + m = 2(R - r)\) (Archimedes, Book of Lemmas). The perimeter is the four arcs, \(\pi R + 2\pi r + \pi(R - 2r) = 2\pi R\).
Solving from what you know
Choose what you know: Large radius R and end radius r; Large radius R and middle radius m; Area A and large radius R. The calculator first solves for the sizes that define the shape and then computes every other value from the formulas above. Each length is accepted from 0.000001 to 1,000,000,000 (a length the shape allows to shrink away, such as an inner radius, may also be 0), and each area from 0.000000000001 to 1,000,000,000,000,000,000; anything outside is refused with a sentence that names the range. A combination that cannot form the shape is refused with a sentence that says why; a limit that is still a real shape, such as an inner radius of 0, is answered.
Worked example
With the defaults R = 10 and r = 3: m = 4, A = 49π ≈ 153.938040, P = 20π ≈ 62.831853.
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. They are shown with up to 6 decimal places; a value below 0.000001 or of 10¹⁵ and more is shown as its plain 12-digit number instead. The unit you pick is a label: lengths are shown in that unit and areas in its square.
Frequently asked questions
What happens when r = R/2?
The middle semicircle shrinks to a point and the salinon becomes a symmetric arbelos with area πR²/4.
Why is the perimeter independent of r?
The two end arcs and the middle arc together span the whole diameter 2R, so they add up to πR, the same as the large arc.
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.
Reference
T. L. Heath (ed.), The Works of Archimedes, Cambridge University Press, 1897