cpow

fun Double.cpow(exponent: Double): Complex(source)

Raises a real number to the power of the given exponent and returns the result as a complex number.

This function internally converts the real number to a complex number with an imaginary part of 0, and then performs the power operation.

Return

A Complex instance representing the result of raising the number to the given power.

Parameters

exponent

The exponent to which the number is raised.