function [ x, y ] = p10_dat ( data_num )

%*****************************************************************************80
%
%% P10_DAT returns the data vector for problem 10.
%
%  Discussion:
%
%    100 uniformly random X values between -2 and 5 were selected,
%    and the formula Y = 2 + 5 * X + 10 * N(0,1) was evaluated, where
%    N(0,1) represents random normal values with 0 mean and unit variance.
%
%    The original data was unsorted, but this caused problems for various
%    approximation codes, so the data has now been sorted.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    08 February 2012
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer DATA_NUM, the number of data points.
%
%    Output, real X(DATA_NUM,1), the abscissa data.
%
%    Output, real Y(DATA_NUM,1), the ordinate data.
%
  x(1:100,1) = [ ...
    -1.9935, -1.8884, -1.8813, -1.8786, -1.8714, ...
    -1.8108, -1.6614, -1.5991, -1.4423, -1.3441, ...
    -1.1730, -1.1575, -0.9886, -0.8196, -0.7771, ...
    -0.7706, -0.7270, -0.7243, -0.7228, -0.6235, ...
    -0.6023, -0.1650, -0.1117, -0.0570,  0.0923, ...
     0.1132,  0.3157,  0.3343,  0.3356,  0.3827, ...
     0.4019,  0.4570,  0.4866,  0.6041,  0.6803, ...
     0.8395,  0.8734,  0.9115,  0.9190,  1.0716, ...
     1.1649,  1.2261,  1.3118,  1.3484,  1.3698, ...
     1.5721,  1.6258,  1.7749,  1.8234,  1.9732, ...
     1.9784,  2.0022,  2.0231,  2.0398,  2.0401, ...
     2.0757,  2.0824,  2.2051,  2.2634,  2.3076, ...
     2.3660,  2.3931,  2.4175,  2.5928,  2.6235, ...
     2.8109,  2.8898,  2.9561,  2.9669,  3.1161, ...
     3.1430,  3.1749,  3.2373,  3.4166,  3.6131, ...
     3.6635,  3.6669,  3.7486,  3.7530,  3.7862, ...
     3.8021,  3.8298,  3.8696,  3.9051,  3.9509, ...
     4.0678,  4.1038,  4.1557,  4.2456,  4.2564, ...
     4.3228,  4.3403,  4.4157,  4.4998,  4.5767, ...
     4.6312,  4.7029,  4.7717,  4.8424,  4.8915  ]';

  y(1:100,1) = [ ...
     -1.8918,  -8.6202,  -0.4152,  -4.6967,  -2.4144, ...
    -21.8853, -16.5097, -10.4657,  -4.1150,   6.5665, ...
     -6.7649,   8.8276,   1.8109,   9.6428,  -0.6165, ...
     -8.4213, -16.4491,  -0.0667,   6.5713,  -4.0436, ...
     -6.4194,  -1.9114,  -9.5246,  -3.2154,   0.6541, ...
      3.0247,   2.9410,   9.7848,   4.7713,  22.0539, ...
      7.1301,  22.3302,  -2.7979,  10.2864,   2.7993, ...
     12.1989,  12.3065, -15.3026,  -6.6749,  -7.0521, ...
     11.8429,  22.8325,   5.2912,  16.8654,  14.3045, ...
     -0.6553,  14.1038,   3.3556,  26.2797,  11.5406, ...
     28.2522,   7.7605,  18.0102,  11.5710,  -8.0188, ...
      2.5576,  18.5371,  12.4771,   2.1298,   7.2745, ...
     16.3256,   4.0354,  23.8374,   8.5572,  33.2063, ...
      5.2561,  18.4409,   1.5702,   9.5982,  11.6483, ...
     21.7285,  27.2958,  21.1916,  15.3527,  28.2207, ...
     28.3065,  21.5368,  26.4556,  24.8933,  11.0617, ...
     28.6064,  14.5770,  15.3088,  23.2952,  18.6796, ...
     21.0208,  28.4730,  33.2469,  21.2484,  26.5592, ...
     21.2314,  25.9979,  28.4785,  18.3307,  27.6318, ...
     31.1673,  26.4379,  43.1573,  20.1264,  19.0873 ]';

  return
end
