exp method
Calculates the base-e exponential of a complex number z where e is the Euler constant.
Implementation
Complex exp() => 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 Euler constant.
Complex exp() => Complex(
math.exp(real) * math.cos(imaginary),
math.exp(real) * math.sin(imaginary),
);