Computes the base 10 logarithm of a specified input value.

If x is 0, log is negative infinity. If x is not complex and is less than 0, log is not a number (NaN).

## x

An input to this operation.

This input supports scalar numbers, arrays or clusters of numbers, and arrays of clusters of numbers.

Data Type Changes on FPGA

## log

Result of the operation.

This output assumes the same numeric representation as x. When x is of the form x = a + bi, that is, when x is complex, the following equation defines log:
$\mathrm{log}10\left(x\right)=\frac{\mathrm{ln}\left(x\right)}{\mathrm{ln}\left(10\right)}=\left(\frac{1}{\mathrm{ln}\left(10\right)}\right)\left(\mathrm{ln}\left(\sqrt{{a}^{2}+{b}^{2}}\right)+i\mathrm{arctan}2\left(b,a\right)\right)$