function vec2_print ( n, a1, a2, title )

%*****************************************************************************80
%
%% VEC2_PRINT prints a pair of vectors.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    02 November 2005
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of components of the vector.
%
%    real A1(N), A2(N), the vectors to be printed.
%
%    string TITLE, a title.
%
  if ( 0 < length ( title ) )
    fprintf ( 1, '\n' );
    fprintf ( 1, '%s\n', title );
  end
  fprintf ( 1, '\n' );

  for i = 1 : n
    fprintf ( 1, '  %6d:   %12g  %12g\n', i, a1(i), a2(i) );
  end

  return
end
