function stirling_numbers2_test ( )

%*****************************************************************************80
%
%% stirling_numbers2_test() tests stirling_numbers2().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 January 2011
%
%  Author:
%
%    John Burkardt
%
  maxm = 6;
  maxn = 6;

  offset = 1;

  fprintf ( 1, ' \n' );
  fprintf ( 1, 'stirling_numbers2_test():\n' );
  fprintf ( 1, '  stirling_numbers2() computes a table of Stirling\n' );
  fprintf ( 1, '  numbers of the second kind.\n' );

  s = stirling_numbers2 ( maxm, maxn );

  fprintf ( 1, ' \n' );
  fprintf ( 1, '    I S(I,0) S(I,1) S(I,2) S(I,3) S(I,4) S(I,5)\n' );
  fprintf ( 1, ' \n' );

  for i = 0 : maxm
    fprintf ( 1, '%5d', i );
    for j = 0 : maxn
      fprintf ( 1, '%5d', s(i+offset,j+offset) );
    end
    fprintf ( 1, '\n' );
  end

  return
end
