Compute volume and surface area of a regular square pyramid from base side and height.
A regular square pyramid has a square base and apex directly above the center. Volume is (1/3) × base area × height. Each triangular face has area ½ × base edge × slant height.
Volume
V = (1/3) × b² × h
Slant Height
l = √(h² + (b/2)²)
Five — one square base and four triangular faces.
Height is the perpendicular distance from base to apex. Slant height is the distance from the base edge midpoint to the apex along a face.