exp method

Complex exp()

Computes the exponential function of this complex number.

Implementation

Complex exp() {
  final exp = a.exp();
  return Complex(
    exp * b.cos(),
    exp * b.sin(),
  );
}