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

Function code for the complex negative() function

Functions

negative()

negative(\Complex\Complex|mixed  $complex) : float

Returns the negative 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

float —

The negative value of the complex argument.