function newton_print_test ( )

%*****************************************************************************80
%
%% newton_print_test tests newton_print.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    16 November 2019
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'newton_print_test:\n' );
  fprintf ( 1, '  newton_print prints a Newton polynomial;\n' );
%
%  Set the data.
%
  n = 4;
  x = 1:n;
  y = exp ( x );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  The data:\n' );
  fprintf ( 1, '\n' );
  for i = 1 : n
    fprintf ( 1, '  %8f  %8f\n', x(i), y(i) );
  end

  [ c, z ] = data_to_newton ( x, y );

  newton_print ( c, z, '  The Newton polynomial:' );

  return
end

