Complex.fromImaginary constructor

const Complex.fromImaginary(
  1. double imaginary
)

Creates a complex with only the imaginary part.

The real part is set to 0.

Implementation

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