Complex.fromImaginary constructor

const Complex.fromImaginary(
  1. double imaginary
)

Creates a complex number having only the imaginary part, meaning that the real part is set to 0.

Implementation

const Complex.fromImaginary(this.imaginary) : real = 0;