function r8poly_fval_test ( )

%*****************************************************************************80
%
%% r8poly_fval_test() tests r8poly_fval().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 April 2009
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8poly_fval_test():\n' );
  fprintf ( 1, '  r8poly_fval() evaluates a polynomial in factorial form.\n' );

  a = r8vec_indicator1 ( n );
 
  r8vec_print ( n, a, '  The factorial polynomial coefficients:' );

  x = 2.0;

  val = r8poly_fval ( n, a, x );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  R8POLY(%f) = %f\n', x, val );
  fprintf ( 1, '  The correct value is 11.\n' );
 
  return
end
