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

Function code for the complex pow() function

Functions

pow()

pow(\Complex\Complex|mixed  $complex, float|int  $power) : \Complex\Complex

Returns a complex number raised to a power.

Parameters

\Complex\Complex|mixed $complex

Complex number or a numeric value.

float|int $power

The power to raise this value to

Throws

\Complex\Exception

If the power argument isn't a valid real

Returns

\Complex\Complex —

The complex argument raised to the real power.