DoxigAlpha

pow

Returns z raised to the complex power of c.

Function parameters

Parameters

#
z:anytype
s:anytype

Returns z raised to the complex power of c.

Functions

#
pow
Returns z raised to the complex power of c.

Source

Implementation

#
pub fn pow(z: anytype, s: anytype) Complex(@TypeOf(z.re, z.im, s.re, s.im)) {
    return cmath.exp(cmath.log(z).mul(s));
}