function value = cone_volume_3d ( r, h ) %% CONE_VOLUME_3D returns the volume of a cone in 3D. % % Modified: % % 20 May 2004 % % Author: % % John Burkardt % % Parameters: % % Input, double precision R, the radius of the base of the cone. % % Input, double precision H, the height of the cone. % % Output, double precision CONE_VOLUME_3D, the volume of the cone. % value = ( pi / 3.0 ) * h * r * r;