function cvt_1d_lumping_test ( )

%*****************************************************************************80
%
%% CVT_1D_LUMPING_TEST tests the CVT_1D_LUMPING library.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    24 December 2018
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../cvt_1d_lumping' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'CVT_1D_LUMPING\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test CVT_1D_LUMPING.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Many computations are to be run.\n' );
  fprintf ( 1, '  Each computation is recorded in a separate output file.\n' );
%
%  Random initialization.
%
  filename = 'output_005_r.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 5, 1000, 4000000, @mu_chebyzero, 1 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_009_r.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 9, 1000, 4000000, @mu_chebyzero, 1 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_017_r.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 17, 1000, 4000000, @mu_chebyzero, 1 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_033_r.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 33, 1000, 4000000, @mu_chebyzero, 1 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_065_r.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 65, 1000, 4000000, @mu_chebyzero, 1 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_129_r.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 129, 1000, 4000000, @mu_chebyzero, 1 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_257_r.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 257, 1000, 4000000, @mu_chebyzero, 1 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
%  Chebyshev initialization.
%
  filename = 'output_005_c.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 5, 1000, 4000000, @mu_chebyzero, 2 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_009_c.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 9, 1000, 4000000, @mu_chebyzero, 2 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_017_c.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 17, 1000, 4000000, @mu_chebyzero, 2 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_033_c.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 33, 1000, 4000000, @mu_chebyzero, 2 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_065_c.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 65, 1000, 4000000, @mu_chebyzero, 2 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_129_c.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 129, 1000, 4000000, @mu_chebyzero, 2 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_257_c.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 257, 1000, 4000000, @mu_chebyzero, 2 )
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
%  Uniform initialization
%
  filename = 'output_005_u.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 5, 1000, 4000000, @mu_chebyzero, 3 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_009_u.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 9, 1000, 4000000, @mu_chebyzero, 3 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_017_u.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 17, 1000, 4000000, @mu_chebyzero, 3 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_033_u.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 33, 1000, 4000000, @mu_chebyzero, 3 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_065_u.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 65, 1000, 4000000, @mu_chebyzero, 3 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_129_u.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 129, 1000, 4000000, @mu_chebyzero, 3 );
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
  filename = 'output_257_u.txt';
  delete ( filename );
  diary ( filename )
  cvt_1d_lumping ( 257, 1000, 4000000, @mu_chebyzero, 3 )
  fprintf ( 1, '  Output saved in "%s"\n', filename );
  diary off
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'CVT_1D_LUMPING\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../cvt_1d_lumping' )

  return
end
