function value = r8vec_amax ( n, a )

%*****************************************************************************80
%
%% r8vec_amax() returns the maximum absolute value in an R8VEC.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 October 2005
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries in the array.
%
%    real A(N), the array.
%
%  Output:
%
%    real VALUE, the value of the entry
%    of largest magnitude.
%
  value = max ( abs ( a(1:n) ) );

  return
end
