function yi = chebyshev_interp_1d ( nd, xd, yd, ni, xi )

%*****************************************************************************80
%
%% chebyshev_interp_1d() determines and evaluates the Chebyshev interpolant.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 September 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer ND, the number of data points.
%    ND must be at least 1.
%
%    real XD(ND,1), the data locations.
%
%    real YD(ND,1), the data values.
%
%    integer NI, the number of interpolation points.
%
%    real XI(NI,1), the interpolation points, which
%    must be each be in the interval [ min(XD), max(XD)].
%
%  Output:
%
%    real YI(NI,1), the interpolated values.
%
  [ c, xmin, xmax ] = chebyshev_coef_1d ( nd, xd, yd );

  yi = chebyshev_value_1d ( nd, c, xmin, xmax, ni, xi );

  return
end
