function fx = p54_fun ( n, x )

%*****************************************************************************80
%
%% p54_fun() evaluates the integrand for problem 54.
%
%  Interval:
%
%    0 <= x <= 1
%
%  Integrand:
%
%    2 / ( 2 + sin ( 10 * PI * x ) )
%
%  Exact Integral:
%
%    2 / sqrt ( 3 ) = 1.154700538379252...
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    04 November 2009
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Prem Kythe, Pratap Puri,
%    Computational Methods for Linear Integral Equations,
%    Birkhaeuser, 2002.
%
%  Input:
%
%    integer N, the number of evaluation points.
%
%    real X(N), the evaluation points.
%
%  Output:
%
%    real FX(N), the integrand values.
%
  fx(1:n) = 2.0 ./ ( 2.0 + sin ( 10.0 * pi * x(1:n) ) );

  return
end
