function r8vec_amin_index_test ( )

%*****************************************************************************80
%
%% R8VEC_AMIN_INDEX_TEST tests R8VEC_AMIN_INDEX;
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    05 August 2018
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_AMIN_INDEX_TEST\n' );
  fprintf ( 1, '  R8VEC_AMIN_INDEX: index of minimum magnitude entry;\n' );
 
  b = -n;
  c = n;
  seed = 123456789;

  [ a, seed ] = r8vec_uniform_ab ( n, b, c, seed );
 
  r8vec_print ( n, a, '  Input vector:' );

  fprintf ( 1, '\n' );

  index = r8vec_amin_index ( n, a );
  fprintf ( 1, '  Minimum absolute occurs at a[%d]\n', index );

  return
end
