function r8vec_running_sign3_test ( )

%*****************************************************************************80
%
%% r8vec_running_sign3_test() tests r8vec_running_sign3().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 February 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8vec_running_sign3_test():\n' );
  fprintf ( 1, '  r8vec_running_sign3() returns the running sign3 of an R8VEC.\n' );

  n = 10;
  a = -5.0;
  b = +10.0;

  r = a + ( b - a ) * rand ( n, 1 );

  r8vec_print ( n, r, '  Random R8VEC:' );

  s = r8vec_running_sign3 ( n, r );

  r8vec_print ( n + 1, s, '  Running sign3:' )

  return
end
