Haskell/Solutions/Variables and functions

One approach for the Giza problem is starting from the pyramid volume and the estimated stone volume. Using general functions for the task, that might look like this in GHCi:

Prelude> let volumeBox w h d = w * h * d -- Just as above. Prelude> let volumeSquarePyramid b h = b * b * h / 3 Prelude> volumeSquarePyramid 230.4 146.5 / volumeBox 1 1 1 2592276.48