klyn.math.Complex.Complex
constructor
public Complex(real as FLOAT_TYPE = 0, imaginary as FLOAT_TYPE = 0):
Description
Constructor for Complex class.
c = Complex<Double>(3.1, 4)
print(c)     # Ouput: 3.1 + 4.0i
Parameters
  • real The real part of the complex number.
  • imaginary The imaginary part of the complex number. ``` c = Complex<Double>(3.1, 4) print(c) # Ouput: 3.1 + 4.0i ```