log

Navigation:  Language Reference > Functions > Arithmetic >

log

Previous pageReturn to chapter overviewNext page

Syntax

y = log(x);

Description

Returns the natural logarithm of X or the elements of X.

Examples

X

log(X)

1

0

2.1

0.6931

4

1.3863

[1,2.1;4,1]

[0,0.6931;1.3863,0]

-2.6

not allowed!

 

Limitations

X and Y must have the same size. X or the elements of X must be larger than zero.