function r = atan2(y,x)
%MATLAB Code Generation Library Function

%   Copyright 2002-2017 The MathWorks, Inc.
%#codegen
coder.replace;
coder.internal.allowHalfInputs;
eml_invariant(nargin > 1,'MATLAB:minrhs');
eml_invariant(isfloat(x),'Coder:toolbox:unsupportedClass',mfilename,class(x));
eml_invariant(isfloat(y),'Coder:toolbox:unsupportedClass',mfilename,class(y));
eml_invariant(isreal(y) && isreal(x),'MATLAB:atan2:complexArgument');
r = coder.internal.applyBinaryScalarFunction(mfilename, ...
    coder.internal.scalarEg(y,x),@coder.internal.scalar.atan2,y,x);
