function value = p00_fun ( prob, x )

%*****************************************************************************80
%
%% p00_fun() evaluates the function for any problem.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer PROB, the number of the desired test problem.
%
%    real X, the point at which the function
%    is to be evaluated.
%
%  Output:
%
%    real VALUE, the value of the function at X.
%
  if ( prob == 1 )
    value = p01_fun ( x );
  elseif ( prob == 2 )
    value = p02_fun ( x );
  elseif ( prob == 3 )
    value = p03_fun ( x );
  elseif ( prob == 4 )
    value = p04_fun ( x );
  elseif ( prob == 5 )
    value = p05_fun ( x );
  else
    fprintf ( 1, '\n' );
    fprintf ( 1, 'P00_fun - Fatal error!\n' );
    fprintf ( 1, '  Illegal problem number = %d\n', prob );
    value = 0.0
    error ( 'P00_fun - Fatal error!' );
  end

  return
end
