exp method
Calculates the base-e exponential of a complex number z where e is the famous Euler constant.
Implementation
Complex exp() {
return Complex(
math.exp(real) * math.cos(imaginary),
math.exp(real) * math.sin(imaginary),
);
}
Calculates the base-e exponential of a complex number z where e is the famous Euler constant.
Complex exp() {
return Complex(
math.exp(real) * math.cos(imaginary),
math.exp(real) * math.sin(imaginary),
);
}