Complex.fromImaginaryMixedFraction constructor

Complex.fromImaginaryMixedFraction(
  1. MixedFraction imaginary
)

Creates a complex number having only the imaginary part expressed as a MixedFraction object.

The real part is set to 0.

Implementation

factory Complex.fromImaginaryMixedFraction(MixedFraction imaginary) =>
    Complex(0, imaginary.toDouble());