function r8poly_deriv_coef_test ( )

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

  d = 4;
  x = 1:d;
  c = roots_to_r8poly ( d, x );
  r8poly_print ( c, '  The initial polynomial' );

  for p = 0 : d + 1
    cp = r8poly_deriv_coef ( d, c, p );
    label = sprintf ( '  The derivative of order %d', p );
    r8poly_print ( cp, label );
  end

  return
end
