function x = r8vec_01_to_ab ( n, x, a, b )

%*****************************************************************************80
%
%% R8VEC_01_TO_AB shifts and scaled an R8VEC from [0,1] to [A,B].
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    05 August 2018
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer N, the number of data values.
%
%    Input, real X(N), the vector to be rescaled.
%
%    Input, real A, B, defines the new interval.
%
%    Output, real X(N), the rescaled vector.
%
  x = ( 1.0 - x ) * a + x * b;

  return
end
