function f2 = p00_f2 ( problem, x ) %*****************************************************************************80 % %% P00_F2 evaluates the second derivative for any problem. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 03 February 2012 % % Author: % % John Burkardt % % Parameters: % % Input, real X, the values of the variables. % % Output, real F2, the second derivative. % if ( problem == 1 ) f2 = p01_f2 ( x ); elseif ( problem == 2 ) f2 = p02_f2 ( x ); elseif ( problem == 3 ) f2 = p03_f2 ( x ); elseif ( problem == 4 ) f2 = p04_f2 ( x ); elseif ( problem == 5 ) f2 = p05_f2 ( x ); elseif ( problem == 6 ) f2 = p06_f2 ( x ); elseif ( problem == 7 ) f2 = p07_f2 ( x ); elseif ( problem == 8 ) f2 = p08_f2 ( x ); elseif ( problem == 9 ) f2 = p09_f2 ( x ); elseif ( problem == 10 ) f2 = p10_f2 ( x ); elseif ( problem == 11 ) f2 = p11_f2 ( x ); else fprintf ( 1, '\n' ); fprintf ( 1, 'P00_F2 - Fatal error!\n' ); fprintf ( 1, ' Illegal problem number PROBLEM = %d\n', problem ); error ( 'P02_F2 - Fatal error!' ); end return end