Imaginary<T>.Addition Operator

Definition

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

Overload List

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

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

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

Parameters

z1  Complex<T>
A complex number number.
z  Imaginary<T>
An imaginary 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, Imaginary<T>) method instead.

Addition(T, Imaginary<T>) Operator

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

Parameters

a  T
A real number number.
z  Imaginary<T>
An imaginary 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, Imaginary<T>) method instead.

Addition(Imaginary<T>, T) Operator

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

Parameters

z  Imaginary<T>
An imaginary 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(Imaginary<T>, T) method instead.

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

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

Parameters

z  Imaginary<T>
An imaginary number.
z2  Complex<T>
A complex 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(Imaginary<T>, T) method instead.

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

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

Parameters

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

Return Value

Imaginary<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(Imaginary<T>, Imaginary<T>) method instead.

See Also