function r8vec_smooth_test ( )

%*****************************************************************************80
%
%% r8vec_smooth_test() tests r8vec_smooth().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 May 2012
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8vec_smooth_test():\n' );
  fprintf ( 1, '  r8vec_smooth() smooths an R8VEC.\n' );

  n = 10;
  x = 1 : n;
  r8vec_print ( n, x, '  The vector X:' );
  s = 2;
  z = r8vec_smooth ( n, x, s );
  label = sprintf ( '  Vector X using smoothing S = %d', s );
  r8vec_print ( n, z, label );

  n = 10;
  x = 1 : n;
  x = x.^2;
  r8vec_print ( n, x, '  The vector X:' );
  s = 1;
  z = r8vec_smooth ( n, x, s );
  label = sprintf ( '  Vector X using smoothing S = %d', s );
  r8vec_print ( n, z, label );


  return
end
