function r8poly_p2f_test ( )

%*****************************************************************************80
%
%% R8POLY_P2F_TEST tests R8POLY_P2F.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    13 April 2009
%
%  Author:
%
%    John Burkardt
%
  n = 4;
  a = r8vec_indicator1 ( n );
 
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8POLY_P2F_TEST\n' );
  fprintf ( 1, '  R8POLY_P2F: power sum => factorial;\n' );

  r8poly_print ( n - 1, a, '  The power sum polynomial:' );
 
  b = r8poly_p2f ( n, a );
 
  r8vec_print ( n, b, '  The factorial polynomial coefficients:' );
 
  c = r8poly_f2p ( n, b );
 
  r8poly_print ( n - 1, c, '  The recovered power sum polynomial:' );

  return
end
