function [ x, y ] = newton_to_data ( c, z )

%*****************************************************************************80
%
%% newton_to_data converts a Newton polynomial to the corresponding data.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    20 November 2019
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real c(n): the Newton coefficients.
%
%    real z(n): the Newton centers.
%
%  Output:
%
%    real x(n), y(n): the data which the polynomial interpolates.
%
  x = z;
  y = newton_value ( c, z, x );

  return
end
