function least_squares_approximant_test ( )

%*****************************************************************************80
%
%% least_squares_approximant_test tests least_squares_approximant.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    12 February 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../least_squares_approximant' );
  addpath ( '../test_interp' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'least_squares_approximant_test:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test least_squares_approximant.\n' );

  prob_num = p00_prob_num ( );
  for prob = 1 : prob_num
    for degree = 1 : 6
      least_squares_approximant_test01 ( prob, degree );
    end
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'least_squares_approximant_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../least_squares_approximant' );
  rmpath ( '../test_interp' );

  return
end
