Complex.fromImaginaryFraction constructor
Complex.fromImaginaryFraction(
- Fraction imaginary
Creates a complex number having only the imaginary part expressed as a Fraction object.
The real part is set to 0.
Implementation
factory Complex.fromImaginaryFraction(Fraction imaginary) =>
Complex(0, imaginary.toDouble());