Complex.exp constructor

Complex.exp({
  1. double r = 1,
  2. required double angle,
})

Implementation

factory Complex.exp({double r = 1, required double angle}) {
  return Complex(real: r * cos(angle), imaginary: r * sin(angle));
}