function value = r8vec_is_negative ( n, x )

%*****************************************************************************80
%
%% R8VEC_IS_NEGATIVE is true if all R8VEC entries are negative.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 April 2018
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the dimension of the vectors.
%
%    real X(N), the vector to be compared against.
%
%  Output:
%
%    logical VALUE, is true (1) if X only contains
%    negative entries.
%
  value = all ( x(1:n) < 0.0 );

  return
end
