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

Function code for the complex log10() function

Functions

log10()

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

Returns the common logarithm (base 10) 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 common logarithm (base 10) of the complex argument.