serve/vendor/markbaker/complex/classes/src/functionsconjugate.php

Function code for the complex conjugate() function

Functions

conjugate()

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

Returns the complex conjugate 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.

Returns

\Complex\Complex —

The conjugate of the complex argument.