Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Common logarithm (base 10)

`Y = log10(X)`

`Y = log10(`

returns
the common logarithm of each element in array `X`

)`X`

.
The function accepts both real and complex inputs. For real values
of `X`

in the interval (0, `Inf`

), `log10`

returns
real values in the interval (`-Inf`

,`Inf`

).
For complex and negative real values of `X`

, the `log10`

function
returns complex values.