function ffttx_test ( )

%*****************************************************************************80
%
%% ffttx_test tests ffttx.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 January 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ffttx_test\n' );
  fprintf ( 1, '  ffttx computes the Fourier transform of a vector.\n' );

  n = 10;

  x = rand ( n, 1 ) + i * rand ( n, 1 );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Complex vector x:\n' );
  fprintf ( 1, '\n' );
  disp ( x );
%
%  Compute the Fourier transform of the data.
%
  y = ffttx ( x );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  y=ffttx(x):\n' );
  fprintf ( 1, '\n' );
  disp ( y );
%
%  Compute the Fourier transform of the conjugate of the Fourier transform of the data.
%
  z = ffttx ( y' ) / n;

  fprintf ( 1, '\n' );
  fprintf ( 1, '  z=ffttx(y'')/n:\n' );
  fprintf ( 1, '\n' );
  disp ( z );

  return
end
