function value = r8vec_asum ( n, a )

%*****************************************************************************80
%
%% r8vec_asum() sums the absolute values of the entries of an R8VEC.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 January 2015
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries in the array.
%
%    real A(N), the array.
%
%  Output:
%
%    real VALUE, the sum of the absolute values of the entries.
%
  value = sum ( abs ( a(1:n) ) );

  return
end
