Complex<T>.Add Method

Definition

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

Overload List

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

Add(T, Complex<T>)

Adds a complex number to a real number.
C#
public static Complex<T> Add(
	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

This method is equivalent to the Addition(T, Complex<T>). It is provided for languages that do not support operator overloading.

Add(Complex<T>, T)

Adds a complex number to a real number.
C#
public static Complex<T> Add(
	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

This method is equivalent to the Addition(Complex<T>, T). It is provided for languages that do not support operator overloading.

Add(Complex<T>, Complex<T>)

Adds two complex numbers.
C#
public static Complex<T> Add(
	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.

Remarks

This method is equivalent to the Addition(Complex<T>, Complex<T>). It is provided for languages that do not support operator overloading.

See Also