function vandermonde_matrix_1d_test ( )

%*****************************************************************************80
%
%% VANDERMONDE_MATRIX_1D_TEST tests VANDERMONDE_MATRIX_1D.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    04 July 2015
%
%  Author:
%
%    John Burkardt
%
  nd = 4;
  xd = [ -1.0; 2.0; 3.0; 5.0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'VANDERMONDE_MATRIX_1D_TEST\n' );
  fprintf ( 1, '  VANDERMONDE_MATRIX_1D sets the Vandermonde matrix for 1D interpolation.\n' );

  ad = vandermonde_matrix_1d ( nd, xd );

  r8mat_print ( nd, nd, ad, '  Vandermonde matrix:' );

  return
end
