function test_interp_1d_test02 ( nd )

%*****************************************************************************80
%
%% test_interp_1d_test02() evaluates each test function at ND sample points.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 August 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer ND, the number of sample points.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'test_interp_1d_test02():\n' );
  fprintf ( 1, '  p00_f() samples each function.\n' );

  prob_num = p00_prob_num ( );

  a = 0.0;
  b = 1.0;
  x = linspace ( a, b, nd );
  x = x';

  fprintf ( 1, '\n' );

  for prob = 1 : prob_num

    y = p00_f ( prob, nd, x );
    fprintf ( 1, '\n' );
    fprintf ( 1, '  X and Y data for problem %d\n', prob );
    fprintf ( 1, '\n' );
    disp ( [ x, y ] );

  end

  return
end
