vendor/markbaker/complex/classes/src/functionsln.php

Function code for the complex ln() function

Functions

ln()

ln(\Complex\Complex|mixed  $complex) : \Complex\Complex

Returns the natural logarithm of a complex number.

Parameters

\Complex\Complex|mixed $complex

Complex number or a numeric value.

Throws

\Complex\Exception

If argument isn't a valid real or complex number.

\InvalidArgumentException

If the real and the imaginary parts are both zero

Returns

\Complex\Complex

The natural logarithm of the complex argument.