function value = ubvec_or ( n, ubvec1, ubvec2 )

%*****************************************************************************80
%
%% UBVEC_OR computes the OR of two unsigned binary vectors.
%
%  Discussion:
%
%    A UBVEC is a vector of N binary digits.
%
%    A UBVEC can be interpreted as a binary representation of an
%    unsigned integer, with the first entry being the coefficient of
%    2^(N-1) and the last entry the coefficient of 1.
%
%    UBVEC   #
%    -----  --
%    00000   0
%    00001   1
%    00010   2
%    10000  16
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    19 November 2015
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer N, the length of the vectors.
%
%    Input, integer UBVEC1(N), UBVEC2(N), the vectors.
%
%    Input, integer VALUE(N), the OR of the two vectors.
%
  value(1:n) = max ( ubvec1(1:n), ubvec2(1:n) );

  return
end
