Complex.fromRealMixedFraction constructor
Complex.fromRealMixedFraction(
- MixedFraction real
Creates a complex number having only the real part, which is expressed as a MixedFraction. The imaginary part is set to 0.
Implementation
Complex.fromRealMixedFraction(MixedFraction real)
: real = real.toDouble(),
imaginary = 0;