pow
-
constexpr pow(const double alpha, const Complex &z) noexcept
Returns the complex power function [1] using real or complex numbers for either argument.
Parameters
Returns
- type Complex
A complex number.
Exponentiation for a complex base \(z\) and a complex power \(w\) is deifned as:
\[z^w = e^{w\log z}\]
Example
Complex z = 3 + 4_j;
Complex w = 3 + 1_j;
std::cout << pow(z, ws) << "\n";
Output:
-15.6062 - 46.9257j
References