function a2 = r8vec_copy ( n, a1 )

%*****************************************************************************80
%
%% r8vec_copy() copies an R8VEC.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 October 2005
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the length of the vectors.
%
%    real A1(N), the vector to be copied.
%
%  Output:
%
%    real A2(N), a copy of A1.
%
  a2(1:n) = a1(1:n);

  return
end
