function Y = log(X)
%LOG    Symbolic matrix element-wise natural logarithm.

%   Copyright (c) 1993-98 by The MathWorks, Inc.
%   $Revision: 1.11 $  $Date: 1997/11/29 01:05:51 $

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

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