function laguerre_polynomial_test ( )

%*****************************************************************************80
%
%% laguerre_polynomial_test() tests laguerre_polynomial().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    09 February 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../laguerre_polynomial' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'laguerre_polynomial_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test laguerre_polynomial().\n' );

  laguerre_polynomial_test01 ( );
  laguerre_polynomial_test02 ( );
  laguerre_polynomial_test03 ( );
  laguerre_polynomial_test04 ( );
  laguerre_polynomial_test05 ( );
  laguerre_polynomial_test06 ( );

  p = 5;
  b = 0.0;
  laguerre_polynomial_test07 ( p, b );

  p = 5;
  b = 0.5;
  laguerre_polynomial_test07 ( p, b );

  p = 5;
  e = 0;
  laguerre_polynomial_test08 ( p, e );

  p = 5;
  e = 1;
  laguerre_polynomial_test08 ( p, e );
%
%  Make some plots.
%
  a = 0.0;
  b = 5.0;
  index = [ 0, 1, 2, 3, 4, 5, 10 ];
  filename = 'l_polynomial.png';
  l_polynomial_plot ( a, b, index, filename );

  a = 0.0;
  b = 5.0;
  index = [ 0, 1, 2, 3, 4, 5, 10 ];
  index2 = [ 1, 1, 1, 1, 1, 1, 1 ];
  filename = 'lm1_polynomial.png';
  lm_polynomial_plot ( a, b, index, index2, filename );

  a = 0.0;
  b = 5.0;
  index = [ 0, 1, 2, 3, 4, 5, 10 ];
  index2 = [ 2, 2, 2, 2, 2, 2, 2 ];
  filename = 'lm2_polynomial.png';
  lm_polynomial_plot ( a, b, index, index2, filename );

  a = 0.0;
  b = 5.0;
  index =  [ 0,   1,   2,   3,   4,   5,   10 ];
  index2 = [ 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5 ];
  filename = 'lf05_function.png';
  lf_function_plot ( a, b, index, index2, filename );

  close
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'laguerre_polynomial_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../laguerre_polynomial' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

