exp method

Complex exp()

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),
    );