// Function definitions int main() { std::cout << "The volume of a tetrahedron with a side length " << 2.0 << " is " << tetrahedron_volume( 2.0 ) << std::endl; std::cout << " - expecting 0.942809041582" << std::endl; std::cout << "The volume of a cube with a side length " << 2.0 << " is " << cube_volume( 2.0 ) << std::endl; std::cout << " - expecting 8" << std::endl; std::cout << "The volume of an octahedron with a side length " << 2.0 << " is " << octahedron_volume( 2.0 ) << std::endl; std::cout << " - expecting 3.77123616633" << std::endl; std::cout << "The volume of a dodecahedron with a side length " << 2.0 << " is " << dodecahedron_volume( 2.0 ) << std::endl; std::cout << " - expecting 61.3049516850" << std::endl; std::cout << "The volume of an icosahedron with a side length " << 2.0 << " is " << icosahedron_volume( 2.0 ) << std::endl; std::cout << " - expecting 17.4535599250" << std::endl; std::cout << "The surface area of a tetrahedron with a side length " << 2.0 << " is " << tetrahedron_area( 2.0 ) << std::endl; std::cout << " - expecting 6.92820323028" << std::endl; std::cout << "The surface area of a cube with a side length " << 2.0 << " is " << cube_area( 2.0 ) << std::endl; std::cout << " - expecting 24" << std::endl; std::cout << "The surface area of an octahedron with a side length " << 2.0 << " is " << octahedron_area( 2.0 ) << std::endl; std::cout << " - expecting 13.8564064606" << std::endl; std::cout << "The surface area of a dodecahedron with a side length " << 2.0 << " is " << dodecahedron_area( 2.0 ) << std::endl; std::cout << " - expecting 82.5829152283" << std::endl; std::cout << "The surface area of an icosahedron with a side length " << 2.0 << " is " << icosahedron_area( 2.0 ) << std::endl; std::cout << " - expecting 34.6410161514" << std::endl; return 0;