exp

fun exp(complex: Complex): Complex(source)

Computes the exponential of a complex number. The exponential is calculated using the formula: exp(a + bi) = e^a * (cos(b) + i*sin(b)) where a and b are the real and imaginary parts of the complex number, respectively.

Return

A new instance of Complex representing the exponential of the given complex number.

Parameters

complex

The complex number for which the exponential is calculated.