| MATLAB® | ![]() |
Y = log(X)
The log function operates element-wise on arrays. Its domain includes complex and negative numbers, which may lead to unexpected results if used unintentionally.
Y = log(X) returns the natural
logarithm of the elements of X. For complex or negative
, where
, the complex logarithm is returned.
log(z) = log(abs(z)) + i*atan2(y,x)
The statement abs(log(-1)) is
a clever way to generate
.
ans =
3.1416exp, log10, log2, logm, reallog
![]() | loadobj | log10 | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |