function r8vec_sst_test ( )

%*****************************************************************************80
%
%% r8vec_sst_test() tests r8vec_sst().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 February 2010
%
%  Author:
%
%    John Burkardt
%
  n = 256;
  alo = 0.0;
  ahi = 5.0;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_SST_TEST\n' );
  fprintf ( 1, '  R8VEC_SST does a forward or backward slow sine transform.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  The number of data items is N = %d\n', n );
%
%  Set the data values.
%
  c = alo + ( ahi - alo ) * rand ( n, 1 );

  r8vec_print_part ( n, c, 10, '  The original data:' );
%
%  Compute the coefficients.
%
  d = r8vec_sst ( n, c );

  r8vec_print_part ( n, d, 10, '  The sine coefficients:' );
%
%  Now compute inverse transform of coefficients.  Should get back the
%  original data.

  e = r8vec_sst ( n, d );

  e(1:n) = e(1:n) / 2 / ( n + 1 );

  r8vec_print_part ( n, e, 10, '  The retrieved data:' );

  return
end
