function f = p00_f ( test, x )

%*****************************************************************************80
%
%% p00_f() evaluates the function for any test.
%
%  Licensing
%
%    This code is distributed under the MIT license.
%
%  Modified
%
%    09 August 2019
%
%  Author
%
%    John Burkardt
%
%  Input
%
%    integer test, the test number.
%
%    real x, the argument of the objective function.
%
%  Output
%
%    real f, the value of the objective function.
%
  if ( test == 1 )
    f = p01_f ( x );
  elseif ( test == 2 )
    f = p02_f ( x );
  elseif ( test == 3 )
    f = p03_f ( x );
  elseif ( test == 4 )
    f = p04_f ( x );
  elseif ( test == 5 )
    f = p05_f ( x );
  elseif ( test == 6 )
    f = p06_f ( x );
  elseif ( test == 7 )
    f = p07_f ( x );
  elseif ( test == 8 )
    f = p08_f ( x );
  elseif ( test == 9 )
    f = p09_f ( x );
  elseif ( test == 10 )
    f = p10_f ( x );
  elseif ( test == 11 )
    f = p11_f ( x );
  elseif ( test == 12 )
    f = p12_f ( x );
  elseif ( test == 13 )
    f = p13_f ( x );
  elseif ( test == 14 )
    f = p14_f ( x );
  elseif ( test == 15 )
    f = p15_f ( x );
  elseif ( test == 16 )
    f = p16_f ( x );
  elseif ( test == 17 )
    f = p17_f ( x );
  elseif ( test == 18 )
    f = p18_f ( x );
  elseif ( test == 19 )
    f = p19_f ( x );
  elseif ( test == 20 )
    f = p20_f ( x );
  elseif ( test == 21 )
    f = p21_f ( x );
  elseif ( test == 22 )
    f = p22_f ( x );
  elseif ( test == 23 )
    f = p23_f ( x );
  elseif ( test == 24 )
    f = p24_f ( x );
  elseif ( test == 25 )
    f = p25_f ( x );
  elseif ( test == 26 )
    f = p26_f ( x );
  elseif ( test == 27 )
    f = p27_f ( x );
  elseif ( test == 28 )
    f = p28_f ( x );
  elseif ( test == 29 )
    f = p29_f ( x );
  elseif ( test == 30 )
    f = p30_f ( x );
  elseif ( test == 31 )
    f = p31_f ( x );
  elseif ( test == 32 )
    f = p32_f ( x );
  elseif ( test == 33 )
    f = p33_f ( x );
  elseif ( test == 34 )
    f = p34_f ( x );
  elseif ( test == 35 )
    f = p35_f ( x );
  elseif ( test == 36 )
    f = p36_f ( x );
  elseif ( test == 37 )
    f = p37_f ( x );
  elseif ( test == 38 )
    f = p38_f ( x );
  elseif ( test == 39 )
    f = p39_f ( x );
  elseif ( test == 40 )
    f = p40_f ( x );
  else
    fprintf ( 1, '\n' );
    fprintf ( 1, 'p00_f(): Fatal error!\n' );
    fprintf ( 1, '  Illegal test number = %d\n', test );
    error ( 'p00_f(): Fatal error!' );
  end

  return
end

