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