Complex.fromReal constructor
const
Complex.fromReal(
- double real
Creates a complex with only the real part.
The imaginary part is set to 0i.
Implementation
const Complex.fromReal(this.real) : imaginary = 0;