log, ln
Natural logarithm (base e).
Syntax
log(expr)
ln(expr)
Argument
- expr
 - A valid scalar, vector, or matrix expression.
 
Example
| Templex Expression | Result | 
|---|---|
{ln(1)} | 
                                0 | 
                            
{log({1, 2, 2.71828})} | 
                                0, .6931, 1 | 
                            
{log({ {1, 2 }, {4, 8}})} | 
                                {0, 0.693147},{1.38629, 2.07944} | 
                            
| Curve Math Vectors | 
|---|
x = c1.x
  | 
                            
Comments
If expr is a scalar, the result is a scalar which is the natural logarithm of expr. expr must be positive.
If expr is a vector, the result is a vector containing the natural logarithm of each element in expr. Each element of expr must be positive.
If expr is a matrix, the result is a matrix containing the natural logarithm of each element in expr. Each element of expr must be positive.