function vandermonde_matrix_1d_test ( )

%*****************************************************************************80
%
%% vandermonde_matrix_1d_test() tests vandermonde_matrix_1d().
%
%  Licensing:
%
%    This code is distributed under the MIT 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
