function r8vec_permute_cyclic_test ( )

%*****************************************************************************80
%
%% R8VEC_PERMUTE_CYCLIC_TEST tests R8VEC_PERMUTE_CYCLIC.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    26 June 2015
%
%  Author:
%
%    John Burkardt
%
  k = 4;


  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_PERMUTE_CYCLIC_TEST\n' );
  fprintf ( 1, '  R8VEC_PERMUTE_CYCLIC carries out a cyclic permutation\n' );
  fprintf ( 1, '  of K positions on an R8VEC.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  K = %d\n', k );

  n = 10;
  x = r8vec_indicator1 ( n );

  r8vec_print ( n, x, '  Original array X[]:' )

  x = r8vec_permute_cyclic ( n, k, x );

  r8vec_print ( n, x, '  Array after cyclic permutation:' );

  return
end
