log

Natural logarithm.

📝 Syntax

  • R = log(M)

📥 Input argument

  • M - a variable

📤 Output argument

  • R - result of log: Natural logarithm.

📄 Description

log computes the natural logarithm.

For real positive numbers: ln(x)\ln(x)

For complex numbers z: ln(z)=lnz+iarg(z)\ln(z) = \ln|z| + i\arg(z)

where z|z|

is the modulus and arg(z)\arg(z)

is the argument of z.

💡 Example

x = [1+i,-i;i,2i];
r = log(x)

🔗 See also

exp, abs, angle.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?