Calculates the natural logarithm function. Input can be complex or negative.
Syntax |
Description |
---|---|
out = log(x); |
The natural logarithm of x. Input can be complex or negative. |
Example
Check that the natural logarithm of e is 1.
?Exp=exp(1); result: 2.71828 ?log(Exp); # Result should be 1 result: 1
See Also
List of commands , log10 , exp