function r8poly_p2f_test ( )

%*****************************************************************************80
%
%% r8poly_p2f_test() tests r8poly_p2f().
%
%  Licensing:
%
%    This code is distributed under the MIT 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 ( 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 ( c, '  The recovered power sum polynomial:' );

  return
end
