function data_to_table_test ( )

%*****************************************************************************80
%
%% data_to_table_test() tests data_to_table().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 November 2019
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'data_to_table_test()\n' );
  fprintf ( 1, '  data_to_table() computes the full divided difference\n' );
  fprintf ( 1, '  table for a given set of data.\n' );
  fprintf ( 1, '  The usual divided difference vector is the first row.\n' );

  n = 4;
  x = linspace ( 0.0, n - 1, n );
  y = x.^3;

  r8vec2_print ( n, x, y, '  Data to be processed:' );

  t = data_to_table ( x, y );

  r8mat_print ( n, n, t, '  Divided difference table:' );

  return
end

