function vandermonde_coef_1d_test ( )

%*****************************************************************************80
%
%% VANDERMONDE_COEF_1D_TEST tests VANDERMONDE_COEF_1D.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL 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 ( nd, xd, yd, '  Interpolation data:' );

  cd = vandermonde_coef_1d ( nd, xd, yd );

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

  r8poly_print ( nd - 1, cd, '  Vandermonde interpolant polynomial:' );

  return
end
