function r8poly_ant_coef_test ( )

%*****************************************************************************80
%
%% r8poly_ant_coef_test() tests r8poly_ant_coef().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 November 2019
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8poly_ant_coef_test\n' );
  fprintf ( 1, '  r8poly_ant_coef() computes the coefficients of the\n' );
  fprintf ( 1, '  antiderivative of a polynomial;\n' );

  d = 4;
  c = zeros ( d + 1, 1 );
  for i = 1 : d + 1
    c(i) = i;
  end
  r8poly_print ( c, '  Polynomial p(x):' );

  c2 = r8poly_ant_coef ( d, c );

  r8poly_print ( c2, '  Antideriv(p(x)):' );

  return
end
