function halton_inverse_test ( )

%*****************************************************************************80
%
%% HALTON_INVERSE_TEST tests HALTON_INVERSE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    27 January 2019
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'HALTON_INVERSE_TEST\n' );
  fprintf ( 1, '  HALTON_INVERSE inverts an element of a Halton sequence.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '    I        R=HALTON(I,3)  HALTON_INVERSE(R,3)\n' );
  fprintf ( 1, '\n' );

  m = 3;

  for i = 0 : 10
    r = halton_value ( i, m );
    i2 = halton_inverse ( r, m );
    fprintf ( 1, '  %3d  %14.8f  %14.8f  %14.8f  %3d\n', i, r(1:m), i2 );
  end

  return
end
