function lagrange_basis_display_test ( )

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

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'lagrange_basis_display_test\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test lagrange_basis_display.\n' );
%
%  Plot the 11 standard "basis vectors".
%
  a = 0.0;
  b = 1.0;
  m = 10;

  standard_basis_display ( a, b, m )
%
%  Plot the 11 Lagrange "basis vectors" for evenly spaced nodes.
%
  a = 0.0;
  b = 1.0;
  m = 10;
  xd = linspace ( a, b, m + 1 );

  lagrange_basis_display ( a, b, m, xd )
%
%  Plot the 11 Lagrange "basis vectors" for Chebyshev-spaced nodes.
%
  a = -1.0;
  b = 1.0;
  m = 10;
  xd(1:m+1) = cos ( pi * ( 2 * ( m + 1 ) + 1 - 2 * (1:m+1) ) / ( 2 * ( m + 1 ) ) );

  lagrange_basis_display ( a, b, m, xd )
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'lagrange_basis_display_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../lagrange_basis_display' );

  return
end
