public Complex(real as FLOAT_TYPE = 0, imaginary as FLOAT_TYPE = 0):
Constructor for Complex class.
| Parameter | Description |
|---|---|
real | The real part of the complex number. |
imaginary | The imaginary part of the complex number. |
c = Complex<Double>(3.1, 4) print(c) # Output: 3.1 + 4j