function y = cotd(x)
%COTD   Cotangent of argument in degrees.
%   COTD(X) is the cotangent of the elements of X, expressed in degrees.
%   For integers n, cotd(n*180) is infinite, whereas cot(n*pi) is large
%   but finite, reflecting the accuracy of the floating point value of pi.
%
%   Class support for input X:
%      float: double, single
%
%   See also ACOTD, COT.

%   Copyright 1984-2004 The MathWorks, Inc. 
%   $Revision: 1.1.6.3 $  $Date: 2004/06/25 18:51:52 $

if ~isreal(x)
    error('MATLAB:cotd:ComplexInput', 'Argument should be real.');
end

y = 1./tand(x);
