function Y = tan(X)
%TAN    Symbolic tangent function.

%   Copyright (c) 1993-98 by The MathWorks, Inc.
%   $Revision: 1.10 $  $Date: 1997/11/29 01:06:14 $

[Y,stat] = maple('map','tan',X);

if stat
   % Singularities
   Y = X;
   for k = 1:prod(size(X))
      [Y(k),stat] = maple('tan',X(k));
      if stat
         Y(k) = Inf;
      end
   end
end
