function value = p04_fun ( x )

%*****************************************************************************80
%
%% p04_fun() evaluates the function for problem 4.
%
%  Discussion:
%
%    This function is highly oscillatory near X = 0.
%
%  Dimension:
%
%    N = 1
%
%  Interval:
%
%    0 <= X <= 1
%
%  Function:
%
%    F(X) = sqrt ( x * ( 1 - x ) ) * sin ( 2.1 * pi / ( x + 0.05 ) )
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 August 2011
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real X, the point at which the function
%    is to be evaluated.
%
%  Output:
%
%    real VALUE, the value of the function at X.
%
  value = sqrt ( x .* ( 1.0 - x ) ) .* sin ( 2.1 * pi ./ ( x + 0.05 ) );

  return
end
