function hammersley_value_test ( )

%*****************************************************************************80
%
%% hammersley_value_test() tests hammersley_value().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 August 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'hammersley_value_test():\n' );
  fprintf ( 1, '  hammersley_value() returns the I-th element of an M-dimensional\n' );
  fprintf ( 1, '  Hammersley sequence.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '    I          hammersley_value(I)\n' );

  n = 16;

  for m = 1 : 3
    fprintf ( 1, '\n' );
    fprintf ( 1, '  Use M = %d\n', m );
    fprintf ( 1, '  Use N = %d\n', n );
    fprintf ( 1, '\n' );
    for i = 0 : 10
      r = hammersley_value ( i, m, n );
      fprintf ( 1, '  %3d', i );
      for j = 1 : m
        fprintf ( 1, '  %14.8f', r(j) );
      end
      fprintf ( 1, '\n' );
    end
  end

  return
end
