function r8vec_sqct_test ( )

%*****************************************************************************80
%
%% R8VEC_SQCT_TEST tests R8VEC_SQCTB and R8VEC_SQCTF.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    27 February 2010
%
%  Author:
%
%    John Burkardt
%
  n = 256;

  ahi = 5.0;
  alo = 0.0;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_SQCT_TEST\n' );
  fprintf ( 1, '  R8VEC_SQCTF does a forward slow quarter wave cosine transform;\n' );
  fprintf ( 1, '  R8VEC_SQCTB does a backward slow quarter wave cosine transform.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  The number of data items is N = %d\n', n );
%
%  Set the data values.
%
  seed = 123456789;

  [ x, seed ] = r8vec_uniform_ab ( n, alo, ahi, seed );

  r8vec_print_part ( n, x, 10, '  The original data:' );
%
%  Compute the coefficients.
%
  y = r8vec_sqctf ( n, x );

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

  x = r8vec_sqctb ( n, y );

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

  return
end
