function r8vec_stutter_test ( )

%*****************************************************************************80
%
%% R8VEC_STUTTER_TEST tests R8VEC_STUTTER.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    02 August 2018
%
%  Author:
%
%    John Burkardt
%
  n = 21;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_STUTTER_TEST\n' );
  fprintf ( 1, '  R8VEC_STUTTER makes a "stuttering" copy of an R8VEC;\n' );

  n = 3;
  x = [ 1.0, 5.0, -2.0 ];
  r8vec_print ( n, x, '  Original vector X:' );
  stutter = 4;

  x2 = r8vec_stutter ( n, x, stutter );
  n2 = n * stutter;

  r8vec_print ( n2, x2, '  Stuttering vector:' );

  return
end
