function monomial_count_test ( )

%*****************************************************************************80
%
%% monomial_count_test() tests monomial_count().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 October 2008
%
%  Author:
%
%    John Burkardt
%
  degree_max = 9;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'monomial_count_test():\n' );
  fprintf ( 1, '  monomial_count() counts the number of monomials of\n' );
  fprintf ( 1, '  degrees 0 through DEGREE_MAX in a space of dimension DIM.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Dim  Count\n' );
  fprintf ( 1, '\n' );

  for dim = 1 : 6

    total = monomial_count ( degree_max, dim );
    fprintf ( 1, '  %2d  %8d\n', dim, total );

  end

  return
end
