function x = r8vec_scale ( s, n, x )

%*****************************************************************************80
%
%% r8vec_scale() multiplies an R8VEC by a scale factor.
%
%  Discussion:
%
%    An R8VEC is a vector of R8 values.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 October 2013
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer S, the scale factor.
%
%    integer N, the length of the vector.
%
%    real X(N), the vector to be scaled.
%
%  Output:
%
%    real X(N), the scaled vector.
%
  x(1:n) = s * x(1:n);

  return
end
