function a = reallog(b)
%REALLOG Real logarithm.
%   REALLOG(X) requires X to have real, nonnegative elements.
%
%   See also REALPOW, REALSQRT.

% $Revision: 1.7 $  $Date: 2000/06/19 16:57:11 $
% Copyright 1984-2000 The MathWorks, Inc.


a = log(b);
if( any(any(imag(a))) ),
   error( 'Reallog produces complex result.' );
end
