Predefined Functions – log

Function name: log – Natural logarithm
Synopsis: log(x)

Input data type Output data type
real real
complex complex
quaternion unsupported


The natural logarithm may be written either as log or as ln. These two functions are the same.

The logarithm of a complex number is not uniquely defined. Mathematically the logarithm of a complex number has an unlimited number of solutions. The solution calculated in ChaosPro is the main branch of the logarithm.

ChaosPro automatically detects the input data type.

In order to calculate log(z) (z = any complex number) ChaosPro performs the following calculation:

  log(z) = 0.5*(log(x^2+y^2))+i*arctan(y/x)  

For the definition of arctan(x) see: