function simplex_num_test ( )

%*****************************************************************************80
%
%% simplex_num_test() tests simplex_num().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    26 February 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'simplex_num_test():\n' );
  fprintf ( 1, '  simplex_num() computes the N-th simplex number\n' );
  fprintf ( 1, '  in M dimensions.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      M: 0     1     2     3     4     5\n' );
  fprintf ( 1, '   N\n' );
 
  for n = 0 : 10
    fprintf ( 1, '  %2d', n );
    for m = 0 : 5
      value = simplex_num ( m, n );
      fprintf ( 1, '  %4d', value );
    end
    fprintf ( 1, '\n' );
  end
 
  return
end
