function r8vec2_print ( a1, a2, title )

%*****************************************************************************80
%
%% r8vec2_print prints an R8VEC2.
%
%  Discussion:
%
%    An R8VEC2 is a dataset consisting of N pairs of real values, stored
%    as two separate vectors A1 and A2.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 May 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    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' );

  n = length ( a1 );

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

  return
end
