function vandermonde_coef_1d_test ( )

%*****************************************************************************80
%
%% vandermonde_coef_1d_test() tests vandermonde_coef_1d().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    04 July 2015
%
%  Author:
%
%    John Burkardt
%
  nd = 5;
  xd = [ 0.0; 1.0; 2.0; 3.0; 4.0 ];
  yd = [ 24.0; 0.0; 0.0; 0.0; 0.0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'vandermonde_coef_1d_test():\n' );
  fprintf ( 1, '  vandermonde_coef_1d() sets the Vandermonde coefficients for 1D interpolation.\n' );

  r8vec2_print ( xd, yd, '  Interpolation data:' );

  cd = vandermonde_coef_1d ( nd, xd, yd );

  r8vec_print ( nd, cd, '  Vandermonde interpolant coefficients:' );

  r8poly_print ( cd, '  Vandermonde interpolant polynomial:' );

  return
end
