exp function
Return e raised to the power complex
,
where e is the base of natural logarithms.
Implementation
Complex<num, num> exp(Complex complex) {
var rl = math.exp(complex.real) * math.cos(complex.imaginary);
var img = math.exp(complex.real) * math.sin(complex.imaginary);
return Complex<num, num>(rl, img);
}