function r8vec_insert_test ( )

%*****************************************************************************80
%
%% R8VEC_INSERT_TEST tests R8VEC_INSERT.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    05 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_INSERT_TEST\n' );
  fprintf ( 1, '  R8VEC_INSERT inserts a value into an R8VEC.\n' );

  n = 10;
  a = 0:9
  r8vec_print ( n, a, '  The initial vector:' );

  value = 5.5;
  pos = 7;
  a = r8vec_insert ( n, a, pos, value );
  n = n + 1;
  r8vec_print ( n, a, '  After insertion of 5.5 at position 7:' );

  return
end
