function x = reallog(x)
%MATLAB Code Generation Library Function

%   Copyright 2006-2014 The MathWorks, Inc.
%#codegen

eml_invariant(nargin > 0,'MATLAB:minrhs');
eml_invariant(isfloat(x),'Coder:toolbox:unsupportedClass',mfilename,class(x));
eml_invariant(isreal(x),'Coder:toolbox:reallog_3');
if coder.internal.isDomainError(x,@lt,zeros('like',x))
    coder.internal.error('MATLAB:reallog:complexResult');
end
x = coder.internal.applyScalarFunctionInPlace(mfilename,@coder.internal.scalar.reallog,x);