Log

Parent Previous Next

Log


Natural logarithm and common logarithm



Syntax


Log(x)

x is scalar

Return a scalar which is the natural logarithm of x


x is matrix

Return a matrix in which the natural logarithm of the element in x

Log(x,y)

x is scalar, y is real scalar

Return a scalar which is the common logarithm of x with base y


x is matrix, y is real scalar

Return a matrix in which the common logarithm of the element in x with base y


Example


Input

Output

log(2)

log(1 + 2i)

log([1+i, 0, 1-i])

log([i, 1-3i; -2i, 5])

log(2,5)

log([1+i, 0, 1-i], 2)

log([i, 1-3i; -2i, 5], 1.5)


See Also


Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation