function test_interp_fun_test06 ( )

%*****************************************************************************80
%
%% test_interp_fun_test06() uses Overhauser spline interpolation on all problems.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 August 2011
%
%  Author:
%
%    John Burkardt
%
  num_dim = 1;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'test_interp_fun_test06\n' );
  fprintf ( 1, '  Overhauser spline interpolation.\n' );

  prob_num = p00_prob_num ( );

  for prob = 1 : prob_num

    title = p00_title ( prob );
    [ a, b ] = p00_lim ( prob );

    ndim = 1;
    ndata = 11;

    xdata = zeros ( ndim, ndata );
    ydata = zeros ( ndim, ndata );

    for i = 1 : ndata
      xdata(1,i) = ( ( ndata - i     ) * a   ...
                   + (         i - 1 ) * b ) ...
                   / ( ndata     - 1 );
      ydata(1,i) = p00_fun ( prob, xdata(1,i) );
    end

    fprintf ( 1, '\n' );
    fprintf ( 1, '  Problem %d\n', prob );
    fprintf ( 1, '  %s\n', title );
    fprintf ( 1, '\n' );
    fprintf ( 1, '  X   Y\n' );
    fprintf ( 1, '\n' );
%
%  Evaluate the interpolation function.
%
    for i = 1 : ndata - 1

      jmax = 3;

      if ( i == ndata - 1 )
        jhi = jmax;
      else
        jhi = jmax - 1;
      end

      for j = 1 : jhi

        xval = ( ( jmax - j     ) * xdata(1,i)     ...
               + (        j - 1 ) * xdata(1,i+1) ) ...
               / ( jmax     - 1 );

        yval = spline_overhauser_val ( num_dim, ndata, xdata, ydata, xval );

        if ( j == 1 || j == 3 )
          mark = '*';
        else
          mark = ' ';
        end

        fprintf ( 1, '  %c  %14g  %14g\n', mark, xval, yval );

      end

    end

  end

  return
end
