function v = r8poly_chebyshev_value_ab ( d, x, a, b )

%*****************************************************************************80
%
%% r8poly_chebyshev_value_ab() evaluates the Chebyshev polynomial T(d,x) for [a,b].
%
%  Discussion:
%
%    The argument X is transformed to XI=(X-A)/(B-A) and the Chebyshev
%    polynomial is evaluated at XI.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    24 October 2019
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer D: the degree of the polynomial.
%
%    real X(M): the evaluation points.
%
%    real A, B: the endpoints of the interval.
%
%  Output:
%
%    real V(M): the value of the Dhebyshev polynomial at X.
%
  xi = ( x - a ) / ( b - a );
  v = r8poly_chebyshev_value ( d, xi );

  return
end

