What is a bifrustum?
A bifrustum (a right regular n-gonal bifrustum) is the solid made of two congruent right regular n-gonal frusta glued together at their larger base. Its middle section is a regular polygon with n sides of length a, its two end faces are smaller regular polygons with n sides of length b, all centred on one axis, and the distance between the end faces is the total height h; each frustum has height h/2. The 2n lateral faces are congruent isosceles trapezoids. With b = a the solid is a prism; as b shrinks to 0 it becomes a bipyramid.
This calculator finds every standard measure of the bifrustum from the two edges and one more value: the total height, slant height, lateral edge, volume or total surface area.
How to use it
Choose what you know in What do you know?, enter the number of sides n (3 to 1000) and the known values. The end edge b must not be longer than the middle edge a. The length unit is a label only. The page shows results rounded to at most 6 decimal places, and writes very large and very small values out in full.
Formulas
With r₁, R₁, B₁ the inradius, circumradius and area of the middle polygon (edge a) and r₂, R₂, B₂ those of an end face (edge b), where a regular n-gon of edge x has \(r = x/(2\tan(\pi/n))\), \(R = x/(2\sin(\pi/n))\) and \(B = n x r/2\):
$$s = \sqrt{(h/2)^2 + (r_1 - r_2)^2}, \qquad e = \sqrt{(h/2)^2 + (R_1 - R_2)^2}$$$$L = n\,(a + b)\,s, \qquad S = L + 2B_2, \qquad V = \frac{h}{3}\left(B_1 + B_2 + \sqrt{B_1 B_2}\right)$$The angle between a lateral face and the middle plane is \(\arctan\big((h/2)/(r_1 - r_2)\big)\), and that of a lateral edge is \(\arctan\big((h/2)/(R_1 - R_2)\big)\).
Derivation
Each half is a frustum of height h/2 with bases B₁ and B₂, whose volume is the difference of two similar pyramids, \(\tfrac{h/2}{3}\big(B_1 + B_2 + \sqrt{B_1 B_2}\big)\). Two of them give
$$V = 2 \cdot \frac{h/2}{3}\left(B_1 + B_2 + \sqrt{B_1 B_2}\right) = \frac{h}{3}\left(B_1 + B_2 + \sqrt{B_1 B_2}\right)$$The surface consists of the 2n trapezoids, each with parallel sides a and b and height s, plus the two end faces; the shared middle polygon is inside the solid and does not count.
Solving from other known values
When the height is not given, the half height is found first: from the slant height \(h/2 = \sqrt{s^2 - (r_1 - r_2)^2}\), from the lateral edge \(h/2 = \sqrt{e^2 - (R_1 - R_2)^2}\), from the volume \(h = 3V/(B_1 + B_2 + \sqrt{B_1 B_2})\), and from the total surface area \(s = (S - 2B_2)/(n(a + b))\). Values that cannot belong to a bifrustum are refused with the reason.
Worked example
The default is a hexagonal bifrustum with a = 8, b = 5 and total height h = 10. The middle area is \(B_1 \approx 166.276878\), each end face \(B_2 \approx 64.951905\), so \(V = \tfrac{10}{3}(166.276878 + 64.951905 + 103.923048) \approx 1{,}117.172771\). The slant height is \(\sqrt{25 + 2.598076^2} \approx 5.634714\), the lateral area \(6 \cdot 13 \cdot 5.634714 \approx 439.507679\) and the total surface area about 569.41149.
FAQ
Why may b not be larger than a?
A bifrustum joins its two frusta at their larger base. Joining them at the smaller base gives a different, waisted solid.
What is the height in this calculator?
The total height, from one end face to the other. Each frustum is half of it.
Does the unit change the numbers?
No. The unit only labels the results.
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.
Accuracy and input range
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.
Enter each length from 0.000001 to 1,000,000,000, each area from 0.000000000001 to 1,000,000,000,000,000,000 and each volume from 0.000000000000000001 to 1,000,000,000,000,000,000,000,000,000. Anything outside is refused with a message naming the range.
References
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., 2018
J. W. Harris and H. Stocker, Handbook of Mathematics and Computational Science, 1998