function pyramid_volume_3d_test ( )

%*****************************************************************************80
%
%% PYRAMID_VOLUME_3D_TEST tests PYRAMID_VOLUME_3D.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    31 July 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PYRAMID_VOLUME_3D_TEST\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  PYRAMID_VOLUME_3d returns the volume of a pyramid.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '     Radius     Height     Volume\n' );
  fprintf ( 1, '\n' );

  seed = 123456789;
  for i = 1 : 5
    [ r, seed ] = r8_uniform_ab ( 1.0, 10.0, seed );
    [ h, seed ] = r8_uniform_ab ( 1.0, 10.0, seed );
    volume = pyramid_volume_3d ( r, h );
    fprintf ( 1, '  %8.4f  %8.4f  %8.4f\n', r, h, volume );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PYRAMID_VOLUME_3D_TEST\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
