Complex<T>.Addition Operator

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

Addition(T, Complex<T>) Adds a complex number to a real number.
Addition(Complex<T>, T) Adds a complex number to a real number.
Addition(Complex<T>, Complex<T>) Adds two complex numbers.

Addition(T, Complex<T>) Operator

Adds a complex number to a real number.
C#
public static Complex<T> operator +(
	T a,
	Complex<T> z
)

Parameters

a  T
A real number number.
z  Complex<T>
A complex number.

Return Value

Complex<T>
A complex number that is the sum of the two operands.

Remarks

If you are using a language that does not support operator overloading, use the staticAdd(T, Complex<T>) method instead.

Addition(Complex<T>, T) Operator

Adds a complex number to a real number.
C#
public static Complex<T> operator +(
	Complex<T> z,
	T a
)

Parameters

z  Complex<T>
A complex number.
a  T
A real number number.

Return Value

Complex<T>
A complex number that is the sum of the two operands.

Remarks

If you are using a language that does not support operator overloading, use the Add(Complex<T>, T) method instead.

Addition(Complex<T>, Complex<T>) Operator

Adds two complex numbers.
C#
public static Complex<T> operator +(
	Complex<T> z1,
	Complex<T> z2
)

Parameters

z1  Complex<T>
The first complex number.
z2  Complex<T>
The second complex number.

Return Value

Complex<T>
A complex number that is the sum of the two operands.

Implements

IAdditionOperators<TSelf, TOther, TResult>.Addition(TSelf, TOther)

Remarks

If you are using a language that does not support operator overloading, use the staticAdd(Complex<T>, Complex<T>) method instead.

See Also