function r8vec_scale_test ( )

%*****************************************************************************80
%
%% R8VEC_SCALE_TEST tests R8VEC_SCALE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    04 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_SCALE_TEST\n' );
  fprintf ( 1, '  R8VEC_SCALE scales a vector by a factor.\n' );

  n = 10;
  a = r8vec_indicator1 ( n );
  r8vec_print ( n, a, '  The vector:' );

  s = 10.0;
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Using a scale of S = %g\n', s );

  a2 = r8vec_scale ( s, n, a );
  r8vec_print ( n, a2, '  Scaled vector:' );

  return
end
