Category: Geometry Level: 201
V = B · h
A prism or a cylinder is a stack of identical layers. Volume is the area of one layer, the base B, times the number of layers, the height h.
The prism sits on a 4 by 3 rectangle. That floor holds 12 unit squares, so the base area is B = 12.
B = 4 × 3 = 12
Put a cube on every square of the floor. One layer, one unit tall, holds 12 cubes.
1 layer = 12 cubes
Stack five identical layers to reach height h = 5. Count layers, not cubes: 12 cubes per layer times 5 layers.
V = B · h = 12 × 5 = 60
A cylinder has a circle for a base. With radius r = 2, the base area is πr² = 4π, about 12.57: almost the same as the prism floor.
B = π r2 = π · 22 ≈ 12.57
Stack five disks, each with area 12.57. The same rule works: base area times height. Prism or cylinder, the shape of the slice does not matter.
V = π r2 h = π · 22 · 5 = 20π ≈ 62.83
cd svg-generator python3 -m svgmath render volume-prism-cylinder --out /tmp/volume-prism-cylinder
Source: svgmath/diagrams/solids.py