klyn.math.Complex.operator+
method
public static operator+( c1 as Complex<FLOAT_TYPE>, c2 as Complex<FLOAT_TYPE> ) as Complex<FLOAT_TYPE>:
Description
Addition operator for Complex numbers.
c1 = Complex(1, 2)   # Default type is Double
c2 = Complex<Double>(3, 4)
c3 = c1 + c2      # c3 is Complex<>(4, 6)
Parameters
  • c1 The first complex number.
  • c2 The second complex number.
Returns
A new Complex number that is the sum of c1 and c2. ``` c1 = Complex(1, 2) # Default type is Double c2 = Complex<Double>(3, 4) c3 = c1 + c2 # c3 is Complex<>(4, 6) ```